Re: Expand first before asking the question "Display all xxx possibilities?"

2020-08-07 Thread Chet Ramey
On 8/6/20 10:11 AM, Ilkka Virta wrote: > On 6.8. 15:59, Chet Ramey wrote: >> On 8/6/20 8:13 AM, Ilkka Virta wrote: >>> I think they meant the case where all the files matching the given >>> beginning have a longer prefix in common. The shell expands that prefix to >>> the command line after asking

Re: Undocumented for-loop construct

2020-08-07 Thread Chet Ramey
On 8/6/20 10:29 PM, Dale R. Worley wrote: > Klaas Vantournhout writes: >> Recently I came across a surprising undocumented bash-feature >> >>$ for i in 1 2 3; { echo $i; }; >> >> The usage of curly-braces instead of the well-documented do ... done >> construct was a complete surprise to me and

Re: Undocumented for-loop construct

2020-08-07 Thread Chet Ramey
On 8/6/20 5:50 PM, Klaas Vantournhout wrote: > Dear Bash-developers, > > Recently I came across a surprising undocumented bash-feature > >$ for i in 1 2 3; { echo $i; }; > > The usage of curly-braces instead of the well-documented do ... done > construct was a complete surprise to me and eve