Re: Problem with function cd in bash 4.0

2009-02-26 Thread Richard Leeden
Chet Ramey wrote: > > Interesting. This happens only on Linux. FreeBSD, MacOS X, and Solaris > all interrupt and return to $PS1. > > Chet > Actually, this was happening for me on Solaris too, so looks like not just a Linux thing. But your patch fixed the issue on Solaris as well. Richard

Re: Problem with function cd in bash 4.0

2009-02-25 Thread Mike Frysinger
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

Re: Problem with function cd in bash 4.0

2009-02-25 Thread Chet Ramey
> > 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 > - bash still waits for the ' to be balanced Still not

Re: Problem with function cd in bash 4.0

2009-02-25 Thread Chet Ramey
Mike Frysinger wrote: > 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 > - bash still waits for the ' to be balanced Interesting. This happens only on Linux. FreeBSD,

Re: Problem with function cd in bash 4.0

2009-02-25 Thread Mike Frysinger
On Monday 23 February 2009 23:02:56 Chet Ramey wrote: > 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) > > # ... > > bu

Re: Problem with function cd in bash 4.0

2009-02-24 Thread Richard Leeden
Chet Ramey wrote: > > I posted a patch for this earlier. Look at > > http://lists.gnu.org/archive/html/bug-bash/2009-02/msg00153.html > > and see if it fixes things for you. > > Chet > Ah yes, that was indeed the problem. Fixed for me as well now. Thanks. -- View this message in context:

Re: Problem with function cd in bash 4.0

2009-02-24 Thread Chet Ramey
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

Re: Problem with function cd in bash 4.0

2009-02-24 Thread Richard Leeden
monoped wrote: > > Works for me, too. Thanks! > 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 tim

Re: Problem with function cd in bash 4.0

2009-02-24 Thread Bernd Eggink
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 \$ " W

Re: Problem with function cd in bash 4.0

2009-02-23 Thread Chet Ramey
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 \$ "