Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > gnu.bash.bug > #15691
| Path | csiph.com!3.us.feeder.erje.net!feeder.erje.net!news.linkpendium.com!news.linkpendium.com!panix!usenet.stanford.edu!not-for-mail |
|---|---|
| From | Greg Wooledge <wooledg@eeg.ccf.org> |
| Newsgroups | gnu.bash.bug |
| Subject | Re: make install failed; dump core in mkdir |
| Date | Mon, 2 Dec 2019 13:48:10 -0500 |
| Lines | 34 |
| Approved | bug-bash@gnu.org |
| Message-ID | <mailman.151.1575312495.1979.bug-bash@gnu.org> (permalink) |
| References | <742858147.7229097.1575213654608.ref@mail.yahoo.com> <742858147.7229097.1575213654608@mail.yahoo.com> <002024f3-19ab-4779-b428-6c433ebe7729@case.edu> <20191202184810.GX851@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 1575312496 21263 209.51.188.17 (2 Dec 2019 18:48:16 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 | <002024f3-19ab-4779-b428-6c433ebe7729@case.edu> |
| 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 <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 | <20191202184810.GX851@eeg.ccf.org> |
| X-Mailman-Original-References | <742858147.7229097.1575213654608.ref@mail.yahoo.com> <742858147.7229097.1575213654608@mail.yahoo.com> <002024f3-19ab-4779-b428-6c433ebe7729@case.edu> |
| Xref | csiph.com gnu.bash.bug:15691 |
Show key headers only | View raw
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.
Back to gnu.bash.bug | Previous | Next | Find similar | Unroll thread
Re: make install failed; dump core in mkdir Greg Wooledge <wooledg@eeg.ccf.org> - 2019-12-02 13:48 -0500
csiph-web