bug-bash
[Top][All Lists]
Advanced

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

Re: Incomplete 'command not found' error message if command name contain


From: Allodoxaphobia
Subject: Re: Incomplete 'command not found' error message if command name contains spaces
Date: 1 Apr 2015 17:21:42 GMT
User-agent: slrn/1.0.2 (FreeBSD)

On Tue, 31 Mar 2015 15:39:13 -0500, John McKown wrote:
> Hum, on my system, I get the message you are expecting. Transcript:
 <-snip->

And, here...
This is puzzling.
On an older Ubuntu 10.04 system I still use (I know, I know...) I
get _no_ response.  But the return code appears correct:

jonesy@nix4:~$ uname -a
Linux nix4 2.6.32-39-generic #86-Ubuntu SMP Mon Feb 13 21:47:32 UTC 2012 i686 
GNU/Linux
jonesy@nix4:~$ bash -version
GNU bash, version 4.1.5(1)-release (i486-pc-linux-gnu)
Copyright (C) 2009 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later 
<http://gnu.org/licenses/gpl.html>
This is free software; you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
jonesy@nix4:~$ echo $?
0
jonesy@nix4:~$ "a nonexistent command with spaces"
jonesy@nix4:~$ echo $?
127
jonesy@nix4:~$

However on my FreeBSD VPS it works as expected:

[jonz~]uname -a
FreeBSD xxx.xxxx.net 10.1-RELEASE-p6 FreeBSD 10.1-RELEASE-p6 #0: Tue Feb 24 
19:00:21 UTC 2015
[jonz~]bash -version
GNU bash, version 4.3.33(0)-release (amd64-portbld-freebsd10.1)
Copyright (C) 2013 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later 
<http://gnu.org/licenses/gpl.html>
This is free software; you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
[jonz~]echo $?
0
[jonz~]"a nonexistent command with spaces"
-bash: a nonexistent command with spaces: command not found
[jonz~]echo $?
127
[jonz~]

Jonesy
-- 
  Marvin L Jones    | Marvin      | W3DHJ  | linux
   38.238N 104.547W |  @ jonz.net | Jonesy |  OS/2
    * Killfiling google & XXXXbanter.com: jonz.net/ng.htm



reply via email to

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