bug-bash
[Top][All Lists]
Advanced

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

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


From: Navin
Subject: Re: for i in ... doesn't seem to work. bash bug?
Date: Thu, 24 Jan 2002 13:51:27 +1100

great. thanks. i put a space in the IFS string and it works as expected.

 local IFS=$' \t\n' cur=${COMP_WORDS[COMP_CWORD]} dirs=()


rgds
navin



On Thu, 24 Jan 2002 01:26, Andreas Schwab wrote:
> daryananin@whitesmiths.com.au (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.




reply via email to

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