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: Chet Ramey
Subject: Re: wget command with simple url makes bash crash
Date: Tue, 25 Aug 2009 22:02:01 -0400
User-agent: Thunderbird 2.0.0.23 (Macintosh/20090812)

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/




reply via email to

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