Re: wrong lineno inside trap?

2009-01-12 Thread Chet Ramey
peter360 wrote: I wrote a test program test.sh: trap ' echo this is line 3, but LINENO=$LINENO ' 0 echo this is line 7, and LINENO=$LINENO --- when I ran it I got $ sh /tmp/test.sh this is line 7, and

Re: Quick question: mv !(file) !$

2009-01-12 Thread Chet Ramey
Yang Zhang wrote: Hi, why doesn't the second command work? (Trying to move all files into a newly created directory.) $ mkdir dhclient $ mv !(dhclient) !$ bash: !: event not found It doesn't work because enabling the `extglob' option doesn't cause bash to tell the history library to not

Howto set a Readline variable (not in the init file!)?

2009-01-12 Thread Andi Bachmann
Hello I'm looking for a way to set a Readline variable, but without editing the init (~/.inputrc or /etc/inputrc) file. E.g., I'd like to have set show-all-if-ambiguous on The thing is that I have to login to some remote server with a login that I share with other users and I don't want to

Re: Howto set a Readline variable (not in the init file!)?

2009-01-12 Thread Dave B
Andi Bachmann wrote: Hello I'm looking for a way to set a Readline variable, but without editing the init (~/.inputrc or /etc/inputrc) file. E.g., I'd like to have set show-all-if-ambiguous on The thing is that I have to login to some remote server with a login that I share

Re: command not found magic

2009-01-12 Thread Ken Irving
On Thu, Dec 04, 2008 at 09:37:58AM +, Stephane Chazelas wrote: On Thu, Dec 04, 2008 at 10:16:20AM +0100, Roman Rakus wrote: probably you heard about this topic. It is invoked by ubuntu guys. See https://launchpad.net/ubuntu/+spec/command-not-found-magic I would like to know, what do

Re: Bash-4.0-rc1 available for FTP

2009-01-12 Thread Matthew Woehlke
Chet Ramey wrote: f. Changed behavior so the shell now acts as if it received an interrupt when a pipeline is killed by SIGINT while executing a list. Does this mean that $ sleep 60 ; do-something ...will no longer run 'do-something' when ctrl-C'd? -- Matthew Please do not quote my

Re: Bash-4.0-rc1 available for FTP

2009-01-12 Thread Chet Ramey
Matthew Woehlke wrote: Chet Ramey wrote: f. Changed behavior so the shell now acts as if it received an interrupt when a pipeline is killed by SIGINT while executing a list. Does this mean that $ sleep 60 ; do-something ...will no longer run 'do-something' when ctrl-C'd? Yes. --

Re: Bash-4.0-rc1 available for FTP

2009-01-12 Thread Matthew Woehlke
Chet Ramey wrote: Matthew Woehlke wrote: Chet Ramey wrote: f. Changed behavior so the shell now acts as if it received an interrupt when a pipeline is killed by SIGINT while executing a list. Does this mean that $ sleep 60 ; do-something ...will no longer run 'do-something' when

execution hook

2009-01-12 Thread eneville_
Hi All, I was looking for a way to run a program prior to bash executing the program. Does anyone know of a hook that can do this, such as an environment that hold this hook value. -- View this message in context: http://www.nabble.com/execution-hook-tp21425515p21425515.html Sent from the