Re: Command grouping

2019-10-14 Thread Greg Wooledge
On Mon, Oct 14, 2019 at 12:37:34PM +0200, Mischa Baars wrote: > > I believe you're missing the point. You were probably distracted by me > brabbling about whitespaces. 1. The questioner's first description of the problem/question will be misleading. 1.1 The questioner's second description

Re: Command grouping

2019-10-14 Thread Mischa Baars
On Sun, 2019-10-13 at 10:54 +0100, k...@plushkava.net wrote: > On Sun, 13 Oct 2019 10:09:26 +0200 > Mischa Baars wrote: > > > On Sat, 2019-10-12 at 10:42 -0400, Chet Ramey wrote: > > > On 10/12/19 9:02 AM, Mischa Baars wrote: > > > > Hi, > > > > > > > > Perhaps to better have a look at this mail

Re: Command grouping

2019-10-13 Thread konsolebox
On Sun, Oct 13, 2019 at 5:55 PM wrote: > shopt -s globstar > for i in ./pace/**/*.c; do > gcc -o "${i%.c}" "$i" > done You might want to add an `|| break` or `|| exit` there. Or use `set -e`, but I'm not a fan of recommending it. Also maybe just create an actual Makefile or CMakeLists.txt if

Re: Command grouping

2019-10-13 Thread
On Sun, 13 Oct 2019 10:09:26 +0200 Mischa Baars wrote: > On Sat, 2019-10-12 at 10:42 -0400, Chet Ramey wrote: > > On 10/12/19 9:02 AM, Mischa Baars wrote: > > > Hi, > > > > > > Perhaps to better have a look at this mail, than the previous mail. > > > > > > In trying to group commands, in this c

Re: Command grouping

2019-10-13 Thread Mischa Baars
On Sat, 2019-10-12 at 10:42 -0400, Chet Ramey wrote: > On 10/12/19 9:02 AM, Mischa Baars wrote: > > Hi, > > > > Perhaps to better have a look at this mail, than the previous mail. > > > > In trying to group commands, in this case compiler commands, I found some > > peculiarities while trying dif

Re: Command grouping

2019-10-12 Thread Chet Ramey
On 10/12/19 9:02 AM, Mischa Baars wrote: > Hi, > > Perhaps to better have a look at this mail, than the previous mail. > > In trying to group commands, in this case compiler commands, I found some > peculiarities while trying different combinations of the 'Internal Field > Separator' > and the

Command grouping

2019-10-12 Thread Mischa Baars
Hi, Perhaps to better have a look at this mail, than the previous mail. In trying to group commands, in this case compiler commands, I found some peculiarities while trying different combinations of the 'Internal Field Separator' and the 'Parameter Expansion' operator ${parameter@P}. Perhaps s