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


Groups > gnu.bash.bug > #15688

Re: make install failed; dump core in mkdir

Path csiph.com!goblin1!goblin.stu.neva.ru!usenet.stanford.edu!not-for-mail
From Eli Schwartz <eschwartz@archlinux.org>
Newsgroups gnu.bash.bug
Subject Re: make install failed; dump core in mkdir
Date Mon, 2 Dec 2019 10:06:36 -0500
Lines 90
Approved bug-bash@gnu.org
Message-ID <mailman.127.1575299210.1979.bug-bash@gnu.org> (permalink)
References <742858147.7229097.1575213654608.ref@mail.yahoo.com> <742858147.7229097.1575213654608@mail.yahoo.com> <20191202135127.GS851@eeg.ccf.org> <20191202143843.GA43338@pooh.my.domain> <0ee0fed4-4542-85c7-7889-2f73b5fd31ce@passchier.net> <20191202145639.GV851@eeg.ccf.org> <cb711f35-9786-1fbf-5829-edb60bebf007@archlinux.org>
NNTP-Posting-Host lists.gnu.org
Mime-Version 1.0
Content-Type multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="VQeX51QsvWB73uajoBxj5juRiwNU1SWCB"
X-Trace usenet.stanford.edu 1575299211 15171 209.51.188.17 (2 Dec 2019 15:06:51 GMT)
X-Complaints-To action@cs.stanford.edu
To bug-bash@gnu.org
Envelope-to bug-bash@gnu.org
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/simple; d=archlinux.org; s=orion; t=1575299199; bh=QIiIwqCPrvwI8cp3fulGCFEw5Tl9KsmNjpud19xjlvo=; h=Subject:To:References:From:Date:In-Reply-To; b=iwbjYn6PZIeJSb5NzN7BGWKyAHYNI8hAlagfMkWF2sJ2WIotukpADMNU4w/bYApXq weM81GpN4d5JUB49WSWtMxQ0KWuKfzLygdHeRoGb68iNiI+PUGS4LiER4fYovEnTro ihPFFt/i1dEuJOKR6pk+K+CgkmvHuypVhv7FC+2X1akaGNGCFAl68Hsayx7Rfeqkak A0pWkBc+5UuCwXMtdjsIWuLSn59MmnD3QZ9+8tcOEVxJStNgeKhBYp3mRD0wOM/TAq e+HcAmI0FVDiUy5DyXwxRkU5klP0OOaeONJBvfQzDNGw0Bgw5tdugzYDs3BviWZE/H lbVSyAs9zPat2KPaARyfNCB4jOXn+LFFU6Mk0AnxTesaBFOIMLNpjyOzVBZIt5Lan0 tz8teXCv+SearjW6GfOe58aJRfMNOFpfPlSvER/X3K6Zjll6GIbKqxMHQbimD8f9QT YiP8/qvsKyaD+F0QrgqOKFDrKUg5ltaI6lj4dfnYiAaw9Las67em4ga5qudZakN/tp iVAwNCHPEjeSRSOGEsun2/wK2AJ8aNSTtecZgC2oLbX/hdsMeArxnoH4DUFoFCsErl +i35K6NZzPAqlqGFZNnn/S/NhlTRjQ1o6cLxMd20/QphaKciRP8t/hI4+P+VZuRPJW iSkW8vuWWICIinvCruubRo7U=
X-Clacks-Overhead GNU Terry Pratchett
User-Agent Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.2.2
In-Reply-To <20191202145639.GV851@eeg.ccf.org>
X-detected-operating-system by eggs.gnu.org: Genre and OS details not recognized.
X-Received-From 2a01:4f8:160:6087::1
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 <cb711f35-9786-1fbf-5829-edb60bebf007@archlinux.org>
X-Mailman-Original-References <742858147.7229097.1575213654608.ref@mail.yahoo.com> <742858147.7229097.1575213654608@mail.yahoo.com> <20191202135127.GS851@eeg.ccf.org> <20191202143843.GA43338@pooh.my.domain> <0ee0fed4-4542-85c7-7889-2f73b5fd31ce@passchier.net> <20191202145639.GV851@eeg.ccf.org>
Xref csiph.com gnu.bash.bug:15688

Show key headers only | View raw


[Multipart message — attachments visible in raw view] - view raw

On 12/2/19 9:56 AM, Greg Wooledge wrote:
> On Mon, Dec 02, 2019 at 09:51:12PM +0700, pepa65 wrote:
>> On 12/2/19 9:38 PM, Andreas Kusalananda Kähäri wrote:>      for dirpath do
>>>          command mkdir -p "$dirpath" || return
>>>      done
>> It is very sad that the 'do' is not optional (non-backwards compatibility
>> breaking feature request!), and it has to be the start of the next
>> commandline (after ';' or the start of a new line), so:
>>
>>     for dirpath
>>     do command mkdir -p "$dirpath" || return
>>     done
> 
> You're mistaken.
> 
> wooledg:~$ set -- a b c
> wooledg:~$ for i do echo "$i"; done
> a
> b
> c

Interesting, I didn't expect that to work. It doesn't work if you use
'in', which I normally do.

$ for i in "$@" do echo "$i"; done
bash: syntax error near unexpected token `done'

I guess that makes sense -- the 'in' will try to treat the words "do"
"echo" "$i" as iteration elements, but without 'in', there can only be
one argument to 'for', so bash can safely parse 'do' without the ;
separator.

But I think I'll still use them despite being not strictly needed, or
I'll just confuse myself once I do need them. :p I've used them for too
long by now, anyway.

-- 
Eli Schwartz
Arch Linux Bug Wrangler and Trusted User

Back to gnu.bash.bug | Previous | Next | Find similar | Unroll thread


Thread

Re: make install failed; dump core in mkdir Eli Schwartz <eschwartz@archlinux.org> - 2019-12-02 10:06 -0500

csiph-web