Weird behaviour of 'hash' builtin

2010-05-30 Thread Jan Schampera
Hello Chet, hello list, during some discussion in the IRC #bash channel on freenode we found a weird behaviour of the 'hash' builtin command. The command exits true if the operand in question contains a /, no matter if that makes sense or not: --- $ hash 'CHANGELOG_CURRENT="http://slackwa

Re: Weird behaviour of 'hash' builtin

2010-05-30 Thread Andreas Schwab
Jan Schampera writes: > If this is not a bug, what's the reason behind this? Probably because a command name containing a slash is never looked up on $PATH, thus never remembered and put in the hash table. Andreas. -- Andreas Schwab, sch...@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53

Re: create array in loop with variable in array's name

2010-05-30 Thread pikta
monoped wrote: > > Am 29.05.2010 01:04, schrieb pikta: >> >> Hi all, >> I'm just a beginer and I got stucked I'm trying to create multiple >> array with variable in array's name. I would expect to have 3 arrays and >> each of them would contain 3 elements like array1=(a b c) array2=(a b c

fallback programmable completion for many or all commands

2010-05-30 Thread Britton Kerin
I like the programmable completion but I'm having some trouble getting it do do exactly what I want: I have a directory called fsbmk with links into my tree structure. I'd like all commands to fall back to looking here if they don't find anything else, or at least to merge all completion from thi