News for hackers. Stuff that matters.
Re:Show HN: Command Line Challenge by joelthelion on Thursday January 26, 2017 @02:14PM (#13494319)

  bash(0)> grep GET !$
  + grep GET '!$'
  grep: !$: No such file or directory
Mmm. Fake bash.
Re:Show HN: Command Line Challenge by zoidb on Thursday January 26, 2017 @02:17PM (#13494344)
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(️)>
Re:Show HN: Command Line Challenge by groner on Thursday January 26, 2017 @06:09PM (#13496239)
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.
Re:Show HN: Command Line Challenge by mauvehaus on Thursday January 26, 2017 @02:23PM (#13494393)
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 :-(