[Rd] Reading exit code of pipe()

Gábor Csárdi csardi.gabor at gmail.com
Thu May 14 15:27:27 CEST 2015


On Thu, May 14, 2015 at 1:27 AM, Kevin Ushey <kevinushey at gmail.com> wrote:
[...]

> So maybe `cat` just doesn't set a status code, and so there's nothing
> for R to forward back (ergo -- NULL)?
>

cat definitely sets the status. IMHO every command sets the exit status, by
definition, at least on Unix/Linux.

/tmp$ touch x
/tmp$ cat x
/tmp$ echo $?
0
/tmp$ cat y
cat: y: No such file or directory
/tmp$ echo $?
1

Gabor

[...]

	[[alternative HTML version deleted]]



More information about the R-devel mailing list