bug-bash
[Top][All Lists]
Advanced

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

Re: inconsistent treatment of backslash-bang


From: pk
Subject: Re: inconsistent treatment of backslash-bang
Date: Wed, 16 Jul 2008 16:06:14 +0200

On Wednesday 16 July 2008 04:47, Lawrence D'Oliveiro wrote:

> Description:
> In all contexts in which a character "X" has special meaning to bash, it
> should be possible to insert that character literally by writing "\X".
> This fails in one case: where "X" is "!", and the context is inside double
> quotes.

That is documented in man bash, and only appens in interactive shells (not
scripts). You can disable history expansion (set +H, set +o histexpand) to
avoid the problem, or use \! outside double quotes.





reply via email to

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