history expansion doesnt work when LANG=de_DE.utf8 and a : is used
Configuration Information [Automatically generated, do not change]: Machine: i486 OS: linux-gnu Compiler: gcc Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='i486' -DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='i486-pc-linux-gnu' -DCONF_VENDOR='pc' -DLOCALEDIR='/usr/share/locale' -DPACKAGE='bash' -DSHELL -DHAVE_CONFIG_H -I. -I../bash -I../bash/include -I../bash/lib -g -O2 uname output: Linux a183127 2.4.27-2-686 #1 Tue Aug 16 16:31:22 JST 2005 i686 GNU/Linux Machine Type: i486-pc-linux-gnu Bash Version: 3.0 Patch Level: 16 Release Status: release Description: History expansion doesnt seem to work well with unicode. When there is a : the event isnt found. Repeat-By: [EMAIL PROTECTED]:~$ echo $LANG de_DE.UTF-8 [EMAIL PROTECTED]:~$ LANG=de_DE bash [EMAIL PROTECTED]:~$ echo $LANG de_DE [EMAIL PROTECTED]:~$ echo 1 12 13 1 12 13 [EMAIL PROTECTED]:~$ !echo:p echo 1 12 13 [EMAIL PROTECTED]:~$ exit [EMAIL PROTECTED]:~$ echo 1 12 13 1 12 13 [EMAIL PROTECTED]:~$ !echo:p bash: !echo:p: event not found [EMAIL PROTECTED]:~$ !echo echo 1 12 13 1 12 13 -- Highspeed-Freiheit. Bei GMX supergünstig, z.B. GMX DSL_Cityflat, DSL-Flatrate für nur 4,99 Euro/Monat* http://www.gmx.net/de/go/dsl ___ Bug-bash mailing list Bug-bash@gnu.org http://lists.gnu.org/mailman/listinfo/bug-bash
shell-expand-line removes quotes from alias expansion
Configuration Information [Automatically generated, do not change]: Machine: i386 OS: linux-gnu Compiler: gcc Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='i386' -DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='i386-pc-linux-gnu' -DCONF_VENDOR='pc' -DLOCALEDIR='/usr/share/locale' -DPACKAGE='bash' -DSHELL -DHAVE_CONFIG_H -I. -I../bash -I../bash/include -I../bash/lib -g -O2 uname output: Linux kleist 2.6.17-2-686 #1 SMP Thu Aug 31 12:53:18 UTC 2006 i686 GNU/Linux Machine Type: i386-pc-linux-gnu Bash Version: 3.0 Patch Level: 16 Release Status: release Description: IMHO shell-expand-line expands some aliases to a different command than the command executed by the unexpanded alias. I think that shell-expand-line wrongly removes quotes when expanding aliases which renders the expanded version unusable under certain circumstances. I need a certain awk command but sometimes I need to change it a little (for example (see below): change the print into print $3). This is why I configured an alias and when I need to change it I expand it using C-M-e (shell-expand-line) and edit it by hand. Since the quotes are striped by the expansion the expanded version is broken. I was suggested to use a function instead of an alias but this makes it impossible to expand and edit the command in the cases when I need to change it. I think that shell-expand-line should expand to the same command as the one which is executed when shell-expand-line is not called. Repeat-By: $ alias SC='awk '\''!/^#/ {print}'\''' $ SC # and hit C-M-e # expands to $ awk !/^#/ {print} # since the '' enclosing !/^#/ which are part of the alias are striped # the awk command wont work. # I think C-M-e should expand to $ awk '!/^#/ {print}' -- "Feel free" - 10 GB Mailbox, 100 FreeSMS/Monat ... Jetzt GMX TopMail testen: http://www.gmx.net/de/go/topmail ___ Bug-bash mailing list Bug-bash@gnu.org http://lists.gnu.org/mailman/listinfo/bug-bash