[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Command grouping
From: |
konsolebox |
Subject: |
Re: Command grouping |
Date: |
Sun, 13 Oct 2019 18:28:30 +0800 |
On Sun, Oct 13, 2019 at 5:55 PM <kfm@plushkava.net> 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 it's
going to stay for a while.
--
konsolebox