4 ms·
Every command is in a new subshell
by zoidb 10y ago
Every 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.