Path: csiph.com!goblin1!goblin.stu.neva.ru!usenet.stanford.edu!not-for-mail From: Greg Wooledge Newsgroups: gnu.bash.bug Subject: Re: make install failed; dump core in mkdir Date: Mon, 2 Dec 2019 09:56:39 -0500 Lines: 20 Approved: bug-bash@gnu.org Message-ID: 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> NNTP-Posting-Host: lists.gnu.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: usenet.stanford.edu 1575298604 14892 209.51.188.17 (2 Dec 2019 14:56:44 GMT) X-Complaints-To: action@cs.stanford.edu To: bug-bash@gnu.org Envelope-to: bug-bash@gnu.org Mail-Followup-To: bug-bash@gnu.org Content-Disposition: inline In-Reply-To: <0ee0fed4-4542-85c7-7889-2f73b5fd31ce@passchier.net> User-Agent: Mutt/1.10.1 (2018-07-13) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 139.137.100.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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Mailman-Original-Message-ID: <20191202145639.GV851@eeg.ccf.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> Xref: csiph.com gnu.bash.bug:15686 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