Re: [Fwd: [Fwd: Extrange behavior]]

2007-01-16 Thread Jordi Prats
Oops! Sorry... I didn't know about this... I found it extrange because csh ,ksh and tcsh don't do this. Sorry for the inconveniences... Chet Ramey wrote: >> I've done a simple patch for this unexpected behavior. >> >> I don't know if the previous message has arribed to the list because I >> wasn'

Re: [Fwd: [Fwd: Extrange behavior]]

2007-01-16 Thread Chet Ramey
> I've done a simple patch for this unexpected behavior. > > I don't know if the previous message has arribed to the list because I > wasn't subcribed. > > I hope this will be useful :) Please read the Bash FAQ, question E10. Chet -- ``The lyf so short, the craft so long to lerne.'' - Chaucer

[Fwd: [Fwd: Extrange behavior]]

2007-01-16 Thread Jordi Prats
Hi all! I've done a simple patch for this unexpected behavior. I don't know if the previous message has arribed to the list because I wasn't subcribed. I hope this will be useful :) -- .. __ / / Jordi Pra

Re: Function/alias recursion

2007-01-16 Thread Chet Ramey
Tim Waugh wrote: > What is the intended behaviour for this sort of thing?: Bash does not attempt to trap infinite recursion, so whatever your system does with it is what will happen. Chet -- ``The lyf so short, the craft so long to lerne.'' - Chaucer Live Strong. No day

Re: Bugs pertaining to pathname expansion and field splitting (when IFS is null), caused by use of literal space to separate words generated by "dollar at" expansions

2007-01-16 Thread Chet Ramey
Stahlman Family wrote: > > I believe that multiple issues may be caused by the implementation's use > of a > literal space character to separate words created by various forms of > "dollar > at" expansions. My previous email describes two such issues in detail, but > there may well be others. The

Re: Unexpected behavior observed when using [EMAIL PROTECTED]/pattern/string} construct

2007-01-16 Thread Chet Ramey
> > Note that the goal in the examples below is to prepend "-iname '" (portion > > within double quotes only) to each of the 2 elements in the original array, > > without changing the number of words. i.e., the new array should contain the > > following 2 words: > > -iname 'abc > > -iname 'def Tha

Re: Function/alias recursion

2007-01-16 Thread Eric Blake
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 According to Tim Waugh on 1/16/2007 5:45 AM: > What is the intended behaviour for this sort of thing?: Infinite recursion, within the limits of your stack. > > $ cat <<"EOF" >trouble > hello () > { > pwd > } > alias pwd="hello" > EOF > The beh

Function/alias recursion

2007-01-16 Thread Tim Waugh
What is the intended behaviour for this sort of thing?: $ cat <<"EOF" >trouble hello () { pwd } alias pwd="hello" EOF $ source trouble $ source trouble $ pwd The behaviour I've observed with bash-3.2 and several earlier releases is that bash consumes all available memory and then crashes. Ti