Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > gnu.bash.bug > #15506

Re: Command grouping

Path csiph.com!xmission!news.snarked.org!news.linkpendium.com!news.linkpendium.com!panix!usenet.stanford.edu!not-for-mail
From konsolebox <konsolebox@gmail.com>
Newsgroups gnu.bash.bug
Subject Re: Command grouping
Date Sun, 13 Oct 2019 18:28:30 +0800
Lines 15
Approved bug-bash@gnu.org
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>
NNTP-Posting-Host lists.gnu.org
Mime-Version 1.0
Content-Type text/plain; charset="UTF-8"
X-Trace usenet.stanford.edu 1570962642 11132 209.51.188.17 (13 Oct 2019 10:30:42 GMT)
X-Complaints-To action@cs.stanford.edu
Cc bug-bash <bug-bash@gnu.org>
To kfm@plushkava.net
Envelope-to bug-bash@gnu.org
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=GC5irZgdtonXlaG4EoEVpJaSmPYIJdgQIHxNCNi6bC4=; b=h4ftcKQD4zxQNg9F8YnxVTD/J3N/LEnH3zVxrijGzzjxKHEbwb1nh1wpByqMVV5YTZ VQ4KL8Sd3SrUEu0T7t0UThpsc81LNb9SIVj5E2zwWB0iD4p+rBBku7O+HpAgfSK7+9ew ODVGhGexpUE1S4/MnkLa+2SLkEWddHZDC22zxwXe7srClNLXDVhGG6Sm5CEMmOyIoY3A 0ryzfKlBDNuv+BDYyoBHrJkHuj8mFBXZgvONy49W5c56Yiix/WoKIDqxoTdOhcBt1Uup K5UFFeR9Pz3nn37fPgNgSgMXtyRK36XvvPkCdnpSoopPdcf6a/ZeQlqwYZFLuMumsJhg U18Q==
X-Google-DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=GC5irZgdtonXlaG4EoEVpJaSmPYIJdgQIHxNCNi6bC4=; b=qilIzIL1UK9YqeEDlp2r2GvDFP37Jc+Pog8146igU3QDsMs/ZLn0W9YRTN7obw/HDJ qTvM5p3cQGx2kKRgEeulESGA7k/4YmQXoDRpnKse+0gwM3UBpe6Ci5Lj4LiEZ4Kuk0ZI 0cfnfjZ8VME3rgapJw9Z+HWA9CG+8aZbHBb1f5YvOL6ZGHzh/9h8aGan5UMNZK8ayYEr 50oJWacZDG0hqQi3VAuLqu5onoByVR6t3mywvA+bt/olv+Fayea3eUuCm0ZPXyL5Dz58 /hnaog7u/H1dT585Q3JHxCZ1qyAgTdVX12XpFbW6Z17srmoCj8lzzzXYgfsn2y3GmQrl sKtA==
X-Gm-Message-State APjAAAWmbDKX7TKOXxhvlwhaahuMZa7U5xl9L+2tjwZ6parbxUCeRoyz fczKl8KbRwEHfpFJpG0vQ/5c6O77B+zj0iOXDBvTSQ==
X-Google-Smtp-Source APXvYqxC/FYl9KFT/BIfhTCPG5JegGczEvmLtz5w3FiawRWeZZ0Grxufs7wm3vCSX6CJbeQyI5C9vKmv3Ksnlbq11S8=
X-Received by 2002:a02:cabb:: with SMTP id e27mr30442030jap.113.1570962636863; Sun, 13 Oct 2019 03:30:36 -0700 (PDT)
In-Reply-To <20191013105449.45845e406ffc7cb4e1829ea2@plushkava.net>
X-detected-operating-system by eggs.gnu.org: Genre and OS details not recognized.
X-Received-From 2607:f8b0:4864:20::d32
X-BeenThere bug-bash@gnu.org
X-Mailman-Version 2.1.23
Precedence list
List-Id Bug reports for the GNU Bourne Again SHell <bug-bash.gnu.org>
List-Unsubscribe <https://lists.gnu.org/mailman/options/bug-bash>, <mailto:bug-bash-request@gnu.org?subject=unsubscribe>
List-Archive <https://lists.gnu.org/archive/html/bug-bash>
List-Post <mailto:bug-bash@gnu.org>
List-Help <mailto:bug-bash-request@gnu.org?subject=help>
List-Subscribe <https://lists.gnu.org/mailman/listinfo/bug-bash>, <mailto:bug-bash-request@gnu.org?subject=subscribe>
X-Mailman-Original-Message-ID <CAJnmqwbK49Hq83v6B_=MR4EBzLFRT9oP+f+69rHDF0A4w4PZqA@mail.gmail.com>
X-Mailman-Original-References <acdb21fe37e928c2063c95ec1d013fe695e3bdf1.camel@cyberfiber.eu> <06070f12-033d-0736-1733-a035629104cd@case.edu> <735ae0ed6542416188552545d16a02936070e493.camel@cyberfiber.eu> <20191013105449.45845e406ffc7cb4e1829ea2@plushkava.net>
Xref csiph.com gnu.bash.bug:15506

Show key headers only | View raw


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


Thread

Re: Command grouping konsolebox <konsolebox@gmail.com> - 2019-10-13 18:28 +0800

csiph-web