3 ms·
bash(0)> grep GET !$ + grep GET '!$' grep: !$: No such file or directory Mmm. Fake bash.
by joelthelion 10y ago
bash(0)> grep GET !$
+ grep GET '!$'
grep: !$: No such file or directory
Mmm. Fake bash.
- zoidb 10y agoEvery command is in a new subshell
- contras1970 10y agoThat may be true but the message from grep shows that $! wasn't expanded by the execution evironment. BTW i get # Print "hello world". # Hint: There are many ways to print text on # the command line, one way is with the 'echo' # command. # # Try it below and good luck! # bash(0)> printf "hello world" Internal Server Error bash(️)>
- groner 10y agohistory expansion is normally only enabled for interactive shells. They could turn it on, but if there isn't any history because this isn't really interactive, it wouldn't do anything useful.
- mauvehaus 10y agofind . -type f -exec grep -q 500 {} \; -print Prints the same list of files as grep -l 500 * , but in a different order; doesn't pass the challenge. Also, grep -Il 500 * doesn't include README, for some reason. file README doesn't work :-(