bug-bash
[Top][All Lists]
Advanced

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

Re: Infinite loop on clearing PWD


From: Mike Frysinger
Subject: Re: Infinite loop on clearing PWD
Date: Sat, 10 Oct 2009 17:24:35 -0400
User-agent: KMail/1.12.1 (Linux/2.6.31; KDE/4.3.1; x86_64; ; )

On Saturday 10 October 2009 17:14:30 address@hidden wrote:
> Configuration Information [Automatically generated, do not change]:
> Machine: x86_64
> OS: linux-gnu
> Compiler: gcc -I/usr/src/packages/BUILD/bash-3.2
>  -L/usr/src/packages/BUILD/bash-3.2/../readline-5.2 Compilation CFLAGS: 
>  -DPROGRAM='bash' -DCONF_HOSTTYPE='x86_64' -DCONF_OSTYPE='linux-gnu'
>  -DCONF_MACHTYPE='x86_64-suse-linux-gnu' -DCONF_VENDOR='suse'
>  -DLOCALEDIR='/usr/share/locale' -DPACKAGE='bash' -DSHELL -DHAVE_CONFIG_H  
>  -I.  -I. -I./include -I./lib   -fmessage-length=0 -O2 -Wall
>  -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables
>  -fasynchronous-unwind-tables -g -D_GNU_SOURCE -DRECYCLES_PIDS -Wall -g
>  -std=gnu89 -Wextra -Wno-unprototyped-calls -Wno-switch-enum -pipe -fPIE
>  -fprofile-use uname output: Linux borg 2.6.31.3-jen90-default #1 SMP
>  2009-10-06 00:27:29 +0200 x86_64 x86_64 x86_64 GNU/Linux Machine Type:
>  x86_64-suse-linux-gnu
> 
> Bash Version: 3.2
> Patch Level: 39
> Release Status: release
> 
> Description:
>       bash enters into an infinite loop when the environment variable PWD
>       is unset. Probably not a smart thing to do, but since this variable
>       is so important, it should probably be ensured that it does not get
>       an empty value. (It does handle non-absolute paths in some random
>       fashion, too.)
> 
> Repeat-By:
>       $ unset PWD

works fine for me with bash-3.2_p39, 3.2_p48, and 4.0_p33.  what are you using 
for your shell prompts and/or your prompt commands ?  in other words, post the 
output of `set` before you run `unset PWD`.
-mike

Attachment: signature.asc
Description: This is a digitally signed message part.


reply via email to

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