Re: test for "command not found" before expanding shell parameters

2014-04-22 Thread Chet Ramey
> On Mon, Apr 21, 2014 at 3:16 AM, Andreas Schwab wrote: > > And if $greo is null the condition will also be true. > > Really? I'll be damned. That explains this problem > I've been having. Yes. `test' operates based on the number of arguments it receives. If you don't quote `$greo' and it e

Re: test for "command not found" before expanding shell parameters

2014-04-22 Thread Alan Young
On Mon, Apr 21, 2014 at 3:16 AM, Andreas Schwab wrote: > And if $greo is null the condition will also be true. Really? I'll be damned. That explains this problem I've been having. -- Alan Young

Re: bash 4.3.11 on FreeBSD stable/{8, 9, 10}, and head, bug with backwards incremental search whenever horizontal-scroll-mode is on

2014-04-22 Thread Trond Endrestøl
On Mon, 21 Apr 2014 11:25+0200, Trond Endrestøl wrote: > On Sun, 20 Apr 2014 22:29-0400, Chet Ramey wrote: > > > On 4/19/14, 3:44 PM, Trond Endrestøl wrote: > > > Hi, > > > > > > I'm running GNU bash 4.3.11 on several branches of FreeBSD, more > > > specifically stable/{8,9,10}, and head (11.0-

Re: bind -x and multiple prompt/command lines

2014-04-22 Thread Jesper Nygårds
Here are simplified versions of two functions that I have written. Both are inspired by similar functions floating around on the zsh mailing lists. The first copies the previous word on the command line, and the second one converts three consecutive dots (...) into ../.., and you can then keep addi