bug-bash
[Top][All Lists]
Advanced

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

unalias from within a subshell does not work?


From: cromwell
Subject: unalias from within a subshell does not work?
Date: Fri, 14 Dec 2001 10:20:07 -0700

Configuration Information [Automatically generated, do not change]:
Machine: i686
OS: linux-gnu
Compiler: i686-pc-linux-gnu-gcc
Compilation CFLAGS:  -DPROGRAM='bash' -DCONF_HOSTTYPE='i686' 
-DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='i686-pc-linux-gnu' 
-DCONF_VENDOR='pc' -DSHELL -DHAVE_CONFIG_H   -I.  -I. -I./include -I./lib -O3  
-mcpu=k6    -march=k6 -fexpensive-optimizations -fschedule-insns2 -funroll-loops
uname output: Linux DeltaParadigm 2.4.16 #1 Wed Nov 28 15:06:58 MST 2001 i686 
unknown
Machine Type: i686-pc-linux-gnu

Bash Version: 2.05a
Patch Level: 0
Release Status: release

Description:
        I set 'alias  make="make  -j2"'  Then within a subshell ()
I 'unalias  make', yet when make is called from within that subshell
it is still aliased.  While I do not expect the unalias to exetend
outside the subshell, I did expect it to work within the subshell.
Is this a bug?

Repeat-By:  The small script below when executed on nfs-utils source
will cause an error, but if the unalias make command is excuted 
outside and before the subshell then no problems.

alias  make="make  -j2"
(  unalias  make
   ./configure  --prefix=/usr
   make
   make install
)


Fix:
        I do not know of a fix yet.



reply via email to

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