--
View this message in context:
http://www.nabble.com/Problem-with-function-cd-in-bash-4.0-tp22171999p0451.html
Sent from the Gnu - Bash mailing list archive at Nabble.com.
On Wednesday 25 February 2009 16:21:47 Chet Ramey wrote:
Yep, it's a bug. Try the attached patch; it works for me.
this introduces a bug of it's own though :/. you can no longer use
ctrl+c to escape from unbalanced quotes.
- type: echo '
- hit enter
- hit ctrl+c over and over
Chet Ramey schrieb:
Bernd Eggink wrote:
I normally wrap the builtin cd into a function cd, which does some
additional things and then calls the builtin. Example:
function cd
{
local list=$(echo *.bui)
# ...
builtin cd $1
}
I have a PS1 like this:
PS1=\\w \$
With
Richard Leeden wrote:
Unfortunately doesn't work for me
I'm doing something to Bernd - i.e. I have a function called cd that calls
the builtin cd after doing some extra things. In bash 4.0 with my cd
function enabled I get a bus error and the shell quits each time I attempt a
tab
I normally wrap the builtin cd into a function cd, which does some
additional things and then calls the builtin. Example:
function cd
{
local list=$(echo *.bui)
# ...
builtin cd $1
}
I have a PS1 like this:
PS1=\\w \$
With bash 3, this worked well; cd-ing
Bernd Eggink wrote:
I normally wrap the builtin cd into a function cd, which does some
additional things and then calls the builtin. Example:
function cd
{
local list=$(echo *.bui)
# ...
builtin cd $1
}
I have a PS1 like this:
PS1=\\w \$
With bash 3,