Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > gnu.bash.bug > #15506
| From | konsolebox <konsolebox@gmail.com> |
|---|---|
| Newsgroups | gnu.bash.bug |
| Subject | Re: Command grouping |
| Date | 2019-10-13 18:28 +0800 |
| Message-ID | <mailman.479.1570962642.9715.bug-bash@gnu.org> (permalink) |
| References | <acdb21fe37e928c2063c95ec1d013fe695e3bdf1.camel@cyberfiber.eu> <06070f12-033d-0736-1733-a035629104cd@case.edu> <735ae0ed6542416188552545d16a02936070e493.camel@cyberfiber.eu> <20191013105449.45845e406ffc7cb4e1829ea2@plushkava.net> <CAJnmqwbK49Hq83v6B_=MR4EBzLFRT9oP+f+69rHDF0A4w4PZqA@mail.gmail.com> |
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
Back to gnu.bash.bug | Previous | Next | Find similar | Unroll thread
Re: Command grouping konsolebox <konsolebox@gmail.com> - 2019-10-13 18:28 +0800
csiph-web