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


Groups > gnu.bash.bug > #15691 > unrolled thread

Re: make install failed; dump core in mkdir

Started byGreg Wooledge <wooledg@eeg.ccf.org>
First post2019-12-02 13:48 -0500
Last post2019-12-02 13:48 -0500
Articles 1 — 1 participant

Back to article view | Back to gnu.bash.bug

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: make install failed; dump core in mkdir Greg Wooledge <wooledg@eeg.ccf.org> - 2019-12-02 13:48 -0500

#15691 — Re: make install failed; dump core in mkdir

FromGreg Wooledge <wooledg@eeg.ccf.org>
Date2019-12-02 13:48 -0500
SubjectRe: make install failed; dump core in mkdir
Message-ID<mailman.151.1575312495.1979.bug-bash@gnu.org>
On Mon, Dec 02, 2019 at 01:41:11PM -0500, Chet Ramey wrote:
> On 12/1/19 10:20 AM, George R Goffe via Bug reports for the GNU Bourne
> Again SHell wrote:
> > mkdir ()
> > { 
> > dirs="$@";
> > for dir in $dirs;
> > do
> > /bin/mkdir -p "$dir";
> > done
> > }
> > 
> > 
> > 
> > make[1]: Leaving directory '/export/home/tools/bash/bash-5.0/po'
> > ( cd /tools/bash/bash-5.0/examples/loadables && make  DESTDIR= install )
> > make[1]: Entering directory '/export/home/tools/bash/bash-5.0/examples/loadables'
> > ../../support/mkinstalldirs: line 53: 1822305 Segmentation fault      (core dumped) mkdir -p -- . 2> /dev/null

Just noticed *another* issue with this function, and with some other
functions that were proposed earlier today.  The -- option is going
to be treated as a directory and trigger a separate invocation of the
"real" mkdir:  /bin/mkdir -p --

The good news is, if this actually happens, you'll probably get an error 
message telling you that it happened.

wooledg:~$ mkdir -p --
mkdir: missing operand
Try 'mkdir --help' for more information.

If you didn't see that, then it's pretty likely that your function was
not actually called.

[toc] | [standalone]


Back to top | Article view | gnu.bash.bug


csiph-web