Quick question: mv !(file) !$

2009-01-08 Thread Yang Zhang
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 -- Yang Zhang http://www.mit.edu/~y_z/

Re: ${parameter+word} not documented in bash.info or bash(1)

2009-01-08 Thread Chet Ramey
Martin Schwenke wrote: > I'm running bash 3.2.39(1)-release (under Ubuntu 8.04 (Hardy) > GNU/Linux). Neither bash.info or bash(1) documents parameter > expansion of the form: > > ${parameter+word} > > This is different to ${parameter:+word}, is clearly implemented by > bash and is documented i

Re: ${parameter+word} not documented in bash.info or bash(1)

2009-01-08 Thread Paul Jarc
"Martin Schwenke" wrote: > Neither bash.info or bash(1) documents parameter expansion of the > form: > > ${parameter+word} It's documented, but it's easy to miss. Just before the list of parameter expansion forms is this paragraph: In each of the cases below, word is subject to tilde e

${parameter+word} not documented in bash.info or bash(1)

2009-01-08 Thread Martin Schwenke
I'm running bash 3.2.39(1)-release (under Ubuntu 8.04 (Hardy) GNU/Linux). Neither bash.info or bash(1) documents parameter expansion of the form: ${parameter+word} This is different to ${parameter:+word}, is clearly implemented by bash and is documented in the standard (The Open Group Base Spe

Re: New feature: Implement catch-all programmable completion handler

2009-01-08 Thread Chet Ramey
> what about something like > > function __bash_completion_loader() { > source "/etc/bash_completion.d/$1.sh" &>/dev/null > return 127 > } > complete -F __bash_completion_loader '' > > which will catch all programmable completions? Need change in bash. > More info at https://bugzilla.redhat.c

New feature: Implement catch-all programmable completion handler

2009-01-08 Thread Roman Rakus
Hi, what about something like function __bash_completion_loader() { source "/etc/bash_completion.d/$1.sh" &>/dev/null return 127 } complete -F __bash_completion_loader '' which will catch all programmable completions? Need change in bash. More info at https://bugzilla.redhat.com/show_bug.cgi?i