bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

Attachment: pgpiQmZ6omUdg.pgp
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]