Comment 2 for bug 754859

Revision history for this message
Herbert Thielen (thielen) wrote :

Some examples are shown below. The first one shows the problem - no error message, but correct return code. The second one shows the expected behaviour for a not available command without white space in the command name.

rum:~$ foo\ bar

rum:~$ echo $?
127

rum:~$ foo
No command 'foo' found, did you mean:
 Command 'fio' from package 'fio' (universe)
 Command 'goo' from package 'goo' (universe)
 Command 'fop' from package 'fop' (universe)
 Command 'fox' from package 'objcryst-fox' (universe)
 Command 'xoo' from package 'xoo' (universe)
 Command 'zoo' from package 'zoo' (universe)
foo: command not found

rum:~$ echo $?
127

After applying the patch, the expected behaviour is shown:

rum:~$ "foo bar"
foo bar: command not found

rum:~$ echo $?
127