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-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 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