bug-bash
[Top][All Lists]
Advanced

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

CDPATH bug


From: Valkanas Nikos
Subject: CDPATH bug
Date: Mon, 1 Oct 2007 14:09:42 +0300

Dear Sir,

 

I would like to bring your attention to a long lasting bash bug. It
exists in the most recent (3.2.15) and could reproduce it as far back as
with SUSE 9.1 (don't have the shell in front of me to verify version).
It is very reproducible:

 

DrWho:~-> echo $CDPATH

~/work:~/work/HOL

DrWho:~-> ls

Desktop  bin  opera6.html  work

DrWho:~-> cd Desktop

DrWho:~/Desktop-> cd ../

DrWho:~-> bash

Ctags are up to date

DrWho:~-> cd ./Desktop

DrWho:~/Desktop-> cd ../

DrWho:~-> sh

DrWho:~-> cd Desktop

sh: cd: Desktop: No such file or directory

DrWho:~-> echo $CDPATH

~/work:~/work/HOL

DrWho:~-> CDPATH=""

DrWho:~-> cd Desktop

DrWho:~/Desktop-> exit

Exit

DrWho:~-> which sh

/bin/sh

DrWho:~->

 

The strange thing is that sh is just a link to bash, and starting a bash
subshell works fine.

 

Thanks,

 

Nikos Valkanas 

Billing Services 

Technology & Operations 

 

Tel:

+30 213 000 4087 

 

hellas online 

Adrianiou 2, 11525 Athens, www.hol.gr 

 

IMPORTANT NOTICE: This email and any of its attachments and information
contained herein are intended only for the recipient(s) named above and
are privileged, confidential, protected by law and/or contain trade
secrets. Any unauthorized use, e.g. review, printing, copying or
distribution by other persons, is prohibited and may constitute a
criminal offence. hellas online cannot accept any responsibility for the
accuracy or completeness of this message as it may have been transmitted
over a public network. 

 

P Please consider your environmental responsibility before printing this
e-mail 

 



reply via email to

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