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

Re: Newbie rpmbuild question: change directory error



Egmont Koblinger wrote:
> On Mon, Mar 20, 2006 at 01:53:51AM -0500, Raman Gupta wrote:
> 
>> + mkdir msttcorefonts
>> + cd msttcorefonts
>> /home/raman/rpmbuild/tmp/rpm-tmp.28761: line 24: cd: msttcorefonts: No
>> such file or directory
> 
> Hi,
> 
> I just happened to hit the same bug outside rpm, a piece of software that
> used to compile doesn't compile now due to this error.
> 
> Then I realized that I have set $CDPATH. If I unset it, it works.
> 
> Do you have CDPATH set to some value? Does unsetting it solve your problem,
> too?

Yes, or adding the current directory to it.

> What's your version of bash? I guess it is a bash bug...

Are you sure you are seeing this behavior with bash?  Bash for me
(version 3.00.16(1)) works fine even when CDPATH does not contain the
current directory. I only see this behavior with the bourne shell. I
don't know if its a bug or the intended behavior.

Cheers,
Raman


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