Re:Show HN: Command Line Challenge
by joelthelion on Thursday January 26, 2017 @02:14PM
(#13494319)
Mmm. Fake bash.
[ Parent
| on HN ]
Every command is in a new subshell
Re:Show HN: Command Line Challenge
by contras1970 on Thursday January 26, 2017 @03:01PM
(#13494779)
That 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(️)>history 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.
find . -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 :-(