Re: Expansion of exclamation mark in single quotes in subcommand
From:
Chris Down
Subject:
Re: Expansion of exclamation mark in single quotes in subcommand
Date:
Mon, 21 Apr 2014 23:55:04 +0800
User-agent:
Mutt/1.5.23 (2014-03-12)
Chris Down writes:
> !! is not single-quoted in the ultimate expansion (bash knows nothing
> about what happens inside the subshell), which is all that matters. It's
> not too late to perform history expansion (which is different than
> parameter expansion).
To be more clear, the history expansion is performed immediately after
the line is read, before word splitting takes place.
Perhaps this may be undesirable(?), but I don't think it's unexpected
behaviour.