Re: Problem with function cd in bash 4.0

2009-02-26 Thread Richard Leeden
on Solaris as well. Richard -- 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.

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
iew this message in context: http://www.nabble.com/Problem-with-function-cd-in-bash-4.0-tp22171999p22191924.html Sent from the Gnu - Bash mailing list archive at Nabble.com.

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
0x00027b08 in parse_command () at eval.c:228 #16 0x00027bd0 in read_command () at eval.c:272 #17 0x00027d60 in reader_loop () at eval.c:137 #18 0x00027010 in main (argc=1, argv=0xffbff2e4, env=0xffbff2ec) at shell.c:741 (gdb) Thanks, Richard -- View this message in context: http://www.nabble.com/Problem-with-function-cd-in-bash-4.0-tp22171999p22186602.html Sent from the Gnu - Bash mailing list archive at Nabble.com.

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 \$ "

Problem with function cd in bash 4.0

2009-02-23 Thread Bernd Eggink
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-