9
1
I just pasted a bunch of code into my shell, but forgot to remove the leading %
before running the command. It appears to have done nothing. Why does this do nothing in my shell (zsh)?
> % echo foo
In bash, I get the following
> % echo foo
bash: fg: %: no such job
I just want to be sure that running my command hasn't had some side-effect.
Brilliant, thanks. I was able to replicate your tests and foreground a running job with
%
. Good catch on the$histchars
too, but mine is a hash sign (!^#
). I'm guessing the answer to my particular case then is that there were some backgrounded processes behaving strangely in zsh. Thanks again for the shell lesson! – Dave – 2014-10-15T11:16:41.697