bug-bash
[Top][All Lists]
Advanced

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

Exclamation points in $'string'


From: Lev Bishop
Subject: Exclamation points in $'string'
Date: Fri, 19 Oct 2007 17:45:04 -0400

Configuration Information [Automatically generated, do not change]:
Machine: i686
OS: cygwin
Compiler: gcc
Compilation CFLAGS:  -DPROGRAM='bash.exe' -DCONF_HOSTTYPE='i686'
-DCONF_OSTYPE='cygwin' -DCONF_MACHTYPE='i686-pc-cygwin'
-DCONF_VENDOR='pc' -DLOCALEDIR='/usr/share/locale' -DPACKAGE='bash'
-DSHELL -DHAVE_CONFIG_H -DRECYCLES_PIDS   -I.
-I/home/eblake/bash-3.2.25-17/src/bash-3.2
-I/home/eblake/bash-3.2.25-17/src/bash-3.2/include
-I/home/eblake/bash-3.2.25-17/src/bash-3.2/lib   -O2 -pipe
uname output: CYGWIN_NT-5.1 Monkey 1.7.0s(0.170/4/2) 20070616 20:42:08
i686 Cygwin
Machine Type: i686-pc-cygwin

Bash Version: 3.2
Patch Level: 25
Release Status: release

Description:
I am seeing behaviour that doesn't seem to match with the manpage.

The problem is with $'strings' where there is a backslash-escaped single
quote in the string, and somewhere later in the string there is an
exclamation point.

Behave as expected:
$ echo $'!'
!
$ echo $'!\''
!'

Does not behave as expected:
$ echo $'\'!'
bash: !: event not found

Repeat-By:
        $ echo $'\'!'

Fix:
        $ set +H




reply via email to

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