[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Escaping of exclamation marks inside quotes seems wrong
From: |
tmacieir |
Subject: |
Escaping of exclamation marks inside quotes seems wrong |
Date: |
Wed, 17 Oct 2007 15:24:44 +0200 |
Configuration Information [Automatically generated, do not change]:
Machine: i586
OS: linux-gnu
Compiler: gcc
Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='i586'
-DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='i586-mandriva-linux-gnu'
-DCONF_VENDOR='mandriva' -DLOCALEDIR='/usr/share/locale' -DPACKAGE='bash'
-DSHELL -DHAVE_CONFIG_H -I. -I.. -I../include -I../lib -O2 -g -pipe
-Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4
-fexceptions -fomit-frame-pointer -march=i586 -mtune=generic
-fasynchronous-unwind-tables
uname output: Linux lothlorien 2.6.23-tmb-server-0.rc7.1mdv #1 SMP Thu Sep 20
20:43:50 EDT 2007 i686 Intel(R) Core(TM)2 CPU 6420 @ 2.13GHz GNU/Linux
Machine Type: i586-mandriva-linux-gnu
Bash Version: 3.2
Patch Level: 17
Release Status: release
Description:
When trying to produce an exclamation mark (!) inside a quoted
string is behaving differently from expected. I cannot see a
way of producing an exclamation mark inside a doubly-quoted
(") string in the bash prompt.
Perhaps the following command sequences help explain the
problem better:
Behaving as expected:
$ echo !z
bash: !z: event not found
$ echo \!z
!z
$ echo "!z"
bash: !z: event not found
$ echo "\\!z"
\!z
Not behaving as expected:
$ echo "\!z"
\!z
Repeat-By:
See above.
- Escaping of exclamation marks inside quotes seems wrong,
tmacieir <=