Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Quellen zu Ueb4:
- Splitten des Strings: http://stackoverflow.com/questions/289347/using-strtok-with-a-stdstring
- Existenz der Datei prüfen: http://stackoverflow.com/questions/230062/whats-the-best-way-to-check-if-a-file-exists-in-c-cross-platform
- ti2sh$ ls
- command: ls, background: nein
- argPrint.cpp Makefile parser.h r.l r.o ti2sh ti2sh.cc ti2sh.cc~ ti2sh.o
- ti2sh$ g++ argPrint.cpp -o argPrint
- command: g++, background: nein
- ti2sh$ ./argPrint arg1 arg2 ichbincool
- command: ./argPrint, background: nein
- ./argPrint
- arg1
- arg2
- ichbincool
- ti2sh$ mkdir SomeFolder
- command: mkdir, background: nein
- ti2sh$ cp argPrint SomeFolder/argPrint
- command: cp, background: nein
- ti2sh$ SomeFolder/argPrint arg1 arg2 oderdochnicht
- command: SomeFolder/argPrint, background: nein
- SomeFolder/argPrint
- arg1
- arg2
- oderdochnicht
- ti2sh$ xterm
- command: xterm, background: nein
- ti2sh$ xterm&
- command: xterm, background: ja
- ti2sh$ sleep& 20
- ti2sh: Mehrere Kommandos nicht implementiert!
- ti2sh$ sleep 20
- command: sleep, background: nein
- ti2sh$ sleep 10
- command: sleep, background: nein
- ti2sh$ echo das wars
- command: echo, background: nein
- ti2sh$ das wars
- fail
- command: fail, background: nein
- No such command
- ti2sh$ ^C
- ti2sh$ ichbinkeinbefehl
- command: ichbinkeinbefehl, background: nein
- No such command
- ti2sh$ ichbinkeinbefehl&
- command: ichbinkeinbefehl, background: ja
- No such command
- ti2sh$ ./keinbefehl
- command: ./keinbefehl, background: nein
- No access to file / No file
- ti2sh$ ./KeinOrdner/keinbefehl
- command: ./KeinOrdner/keinbefehl, background: nein
- No access to file / No file
- ti2sh$
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement