scsh-users
[Top] [All Lists]

[0.4.2] run epf error return values buglet?

To: scsh-bugs@martigny.ai.mit.edu
Subject: [0.4.2] run epf error return values buglet?
From: glenn@mathcs.emory.edu (Glenn Barry)
Date: Fri, 8 Dec 1995 05:20:38 -0500
Organization: Emory University, Dept of Math and CS
Reply-to: glenn@mathcs.emory.edu (Glenn Barry)

A unix cmd executed within the scsh run epf that returns a non-zero
value has that value multiplied by 256:

> (run (grep blah /etc/motd))
256

> (run (wc /blah))
wc: cannot open /blah
512

Same behavior for SunOS 5.5 and 4.1.1 and Irix 5.3.

Bit-shifting bug or feature?

thx,
glenn

<Prev in Thread] Current Thread [Next in Thread>