bug-bash
[Top][All Lists]
Advanced

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

please re-add '%' as synonym for 'fg' and '%%'


From: koenig
Subject: please re-add '%' as synonym for 'fg' and '%%'
Date: Mon, 9 Aug 2004 13:05:22 +0200

Configuration Information [Automatically generated, do not change]:
Machine: i386-linux
OS: RedHat-7.1
Compiler: gcc
Compilation CFLAGS:  -DPROGRAM='bash' -DCONF_HOSTTYPE='i386-linux' 
-DCONF_OSTYPE='RedHat-7.1' -DCONF_MACHTYPE='i686-pc-linux-gnu' 
-DCONF_VENDOR='pc' 
-DLOCALEDIR='/scr/os-rh71/koenig/bash-3.0/PREINSTALL//share/locale' 
-DPACKAGE='bash' -DSHELL -DHAVE_CONFIG_H  -I.  -I/soft/bash/bash-3.0/bash-3.0 
-I/soft/bash/bash-3.0/bash-3.0/include -I/soft/bash/bash-3.0/bash-3.0/lib   -O2 
-D_LARGE_FILES -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
uname output: Linux turtle 2.4.24-2 #2 Fri Feb 6 09:34:22 CET 2004 i686 unknown
Machine Type: i686-pc-linux-gnu

Bash Version: 3.0
Patch Level: 0
Release Status: release

Description:

bash-3.0 no longer allows '%' as synomym for 'fg', now I have
to use '%%'.

a) this is not mentioned in the "NEWS" file

b) this breaks compatibility with other shells!  I've been using
'%' for about 20 years with csh, tcsh and bash (up to 2.05b),
and I really don't like to learn new incompatibilities 
iff not really necessary! 

for now I'm using 

        alias %=%%

in my private login, but I really would like to see this 
as global fix for bash-3...


Repeat-By:

        turtle koenig > sleep 99

        [1]+  Stopped                 sleep 99
        turtle koenig > %
        -bash: fg: %: no such job
        turtle koenig > jobs
        [1]+  Stopped                 sleep 99
        turtle koenig > 
        turtle koenig > %%
        sleep 99
        turtle koenig > 


Fix:

a possible workaroud would be

        alias %=%%

but better fix this in the bash sources.


thanks!




reply via email to

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