[Top][All Lists]

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

Re: for i in ... doesn't seem to work. bash bug?

From: Andreas Schwab
Subject: Re: for i in ... doesn't seem to work. bash bug?
Date: Wed, 23 Jan 2002 15:26:52 +0100
User-agent: Gnus/5.090005 (Oort Gnus v0.05) Emacs/21.2.50 (ia64-suse-linux)

address@hidden (Navin) writes:

|> Hello people 
|> I am a newbie to linux but am comfortable with some shell programming.
|> I am using bash-2.05-15mdk and bash-completion-20020115-1 and Mandrake 8.1
|> This is extract from the _cd() section of the /etc/bash_completion
|> for i in ${CDPATH//:/ }; do

Check out what IFS is set to prior to this line.  Depending on its value
the expansion of ${CDPATH//:/ } might not be split at the spaces.


Andreas Schwab, SuSE Labs, address@hidden
SuSE GmbH, Deutschherrnstr. 15-19, D-90429 N체rnberg
Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."

reply via email to

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