[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.
- Re: inconsistent treatment of backslash-bang,
pk <=
- Re: inconsistent treatment of backslash-bang, Lawrence D'Oliveiro, 2008/07/18
- Re: inconsistent treatment of backslash-bang, Lawrence D'Oliveiro, 2008/07/18
- Re: inconsistent treatment of backslash-bang, Lawrence D'Oliveiro, 2008/07/18
- Re: inconsistent treatment of backslash-bang, pk, 2008/07/18
- Re: inconsistent treatment of backslash-bang, Lawrence D'Oliveiro, 2008/07/19
- Re: inconsistent treatment of backslash-bang, Lawrence D'Oliveiro, 2008/07/19