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: Wed, 26 Aug 2009 09:04:19 -0400

> 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?

It's hard for me to explain that, since I can't reproduce it:

$ ./bash
$ echo $$
23573
$ echo $BASH_VERSION
3.2.50(4)-release
$ cat /etc/debian_version 
lenny/sid
$ wget http://www.google.com & unknowncommand & variable=assignment
--09:08:43--  http://www.google.com/
           => `index.html.1'
Resolving www.google.com... [1] 23596
[2] 23597
bash: unknowncommand: command not found
[2]+  Exit 127                unknowncommand
$ 74.125.95.147, 74.125.95.104, 74.125.95.103, ...
Connecting to www.google.com|74.125.95.147|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]

    [ <=>                                 ] 5,024         --.--K/s             

09:08:43 (73.67 MB/s) - `index.html.1' saved [5024]


[1]+  Done                    wget http://www.google.com
$ echo $$
23573
$ echo $variable
assignment
$ 


-- 
``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]