bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: wget command with simple url makes bash crash


From: Oskar Hermansson
Subject: Re: wget command with simple url makes bash crash
Date: Wed, 26 Aug 2009 09:39:51 +0200

On Wed, Aug 26, 2009 at 04:02, Chet Ramey <chet.ramey@case.edu> wrote:

> Oskar Hermansson wrote:
>
> > Bash Version: 3.2
> > Patch Level: 48
> > Release Status: release
> >
> > Description:
> >     bash crashes when running the following wget command for downloading
> a
> > file:
> >     wget
> >
> http://www.kohanaphp.com/download?modules%5Bauth%5D=Auth&vendors%5Bmarkdown%5D=Markdown&languages%5Ben_US%5D=en_US&format=zip
> >
> >     If the command is placed in a file instead, the file is successfully
> > downloaded:
> >     wget `cat url.txt`
> >
> >     The first wget command does not make for example "sh" crash.
> >
> >     My wget version (if relevant): GNU Wget 1.11.4
> >
> > Repeat-By:
> >     1. wget
> >
> http://www.kohanaphp.com/download?modules%5Bauth%5D=Auth&vendors%5Bmarkdown%5D=Markdown&languages%5Ben_US%5D=en_US&format=zip
> >     2. bash crashes
>
> How does bash crash?  Does it exit on a fatal signal, or dump core?
> You're running three commands here, since the URL is unquoted and
> contains two `&' characters.
>
> Chet
> --
> ``The lyf so short, the craft so long to lerne.'' - Chaucer
>                 ``Ars longa, vita brevis'' - Hippocrates
> Chet Ramey, ITS, CWRU    chet@case.edu
> http://cnswww.cns.cwru.edu/~chet/ <http://cnswww.cns.cwru.edu/%7Echet/>
>

Okay. Bash does not crash. It exits, probably just fine. It was a bit hard
to see that when running the commands in gnome-terminal, because the window
closed immediately. Just as you suggested, it was split into several
commands with the ampersand. I've broken down the case into executing the
following three commands:

oshe@laptop:~$ wget http://www.google.com & unknowncommand &
variable=assignment

I don't understand why bash exits, and if this really is the defined
behavior. Maybe you can explain?

Oskar


reply via email to

[Prev in Thread] Current Thread [Next in Thread]