Akim,
stenn@pogo> sh
$ foo=`cd / 2>/dev/null`
$ echo ,$bar,
,,
$ baz=`exit nonsense 2>/dev/null`
$ echo ,$baz,
,,
$
The ouput of "make check" was about 64k; should I just email it or wait
until the next round of patches?
Harlan
--
> | Akim,
> | stenn@porkypine> sh
> | $ foo=`exit 12 2>/dev/null`
> | $ echo $foo
> |
> | $ bar=`(exit 12) 2>/dev/null`
> | $ echo $bar
> |
> | $ (PATH=. ; echo baz )
> | echo: not found
> | $
>
> I'm lost. I thought it was the redirection of `cd' which was wrong,
> and though it would be the same for all builtins... So indeed I
> understand that echo is not a builtin, but exit must be a builtin, and
> it does not show the `illegal io' message :(
>
> I'm a bit lost here.
>
> foo=`cd / 2>/dev/null`
> echo ,$foo,
>
> bar=`cd /foo 2>/dev/null`
> echo ,$bar,
>
> baz=`exit nonsense 2>/dev/null`
> echo ,$baz,
>
>
>
> Maybe `exit' has no error message at all?
>
> exit nonsense
>
>
>
> What builtin could issue message? If someone understands what
> happens, please speak up!
>
>
> Thanks Harlan!
>