diff --git a/Kernel/_fs_contents b/Kernel/_fs_contents index 9dd078d965..82f977dc26 100644 Binary files a/Kernel/_fs_contents and b/Kernel/_fs_contents differ diff --git a/Kernel/sync-sh b/Kernel/sync-sh index 4053a3ab20..8b8b687be3 100755 --- a/Kernel/sync-sh +++ b/Kernel/sync-sh @@ -7,5 +7,7 @@ cp ../Userland/ls mnt/bin/ls cp ../Userland/pwd mnt/bin/pwd cp ../Userland/sleep mnt/bin/sleep cp ../Userland/date mnt/bin/date +cp ../Userland/true mnt/bin/true +cp ../Userland/false mnt/bin/false umount mnt sync diff --git a/Userland/.gitignore b/Userland/.gitignore index e17fc11729..b132ad73f0 100644 --- a/Userland/.gitignore +++ b/Userland/.gitignore @@ -5,4 +5,6 @@ ls pwd sleep date +false +true *.o diff --git a/Userland/Makefile b/Userland/Makefile index 1615f689b5..3631838c71 100644 --- a/Userland/Makefile +++ b/Userland/Makefile @@ -5,7 +5,9 @@ OBJS = \ ls.o \ pwd.o \ sleep.o \ - date.o + date.o \ + true.o \ + false.o APPS = \ id \ @@ -14,7 +16,9 @@ APPS = \ ls \ pwd \ sleep \ - date + date \ + true \ + false ARCH_FLAGS = STANDARD_FLAGS = -std=c++17 -nostdinc++ -nostdlib @@ -55,6 +59,12 @@ sleep: sleep.o date: date.o $(LD) -o $@ $(LDFLAGS) $< ../LibC/LibC.a +true: true.o + $(LD) -o $@ $(LDFLAGS) $< ../LibC/LibC.a + +false: false.o + $(LD) -o $@ $(LDFLAGS) $< ../LibC/LibC.a + .cpp.o: @echo "CXX $<"; $(CXX) $(CXXFLAGS) -o $@ -c $< diff --git a/Userland/false.cpp b/Userland/false.cpp new file mode 100644 index 0000000000..2227c3aa8f --- /dev/null +++ b/Userland/false.cpp @@ -0,0 +1,4 @@ +int main() +{ + return 1; +} diff --git a/Userland/true.cpp b/Userland/true.cpp new file mode 100644 index 0000000000..905869dfa3 --- /dev/null +++ b/Userland/true.cpp @@ -0,0 +1,4 @@ +int main() +{ + return 0; +}