Re: return code wierdness
Posted in 1994
Several people have posted about sh/rsh/remsh. I think the answer lies in the heredity of your particluar flavor of Unix. Some of the versions of Unix I've seen that were based on System V had the regular Bourne shell /bin/sh, and a "restricted" shell rsh. If I recall correctly, rsh was just a link to /bin/sh. When sh started up, it checked the basename of $0. If it started with "r", sh turned itself into the restricted shell. There was no remote shell. I assume that remsh fixes that deficiency. In the BSD world, rsh is the remote shell. There is no restricted shell, at least none that I know of, in SunOS 4.1.3. I guess the thinking by the BSD folks is that a restricted "sh" is an exercise left to the student. :-) There *is* a restricted Korn shell (rksh), but I've never played with it. Perhaps all of the above will only add to the confusion. :-) Happy restricting remotely, Walt. -- Walt Hultgren Internet: walt@rmy.emory.edu (IP 128.140.8.1) Emory University UUCP: {...,gatech,rutgers,uunet}!emory!rmy!walt 954 Gatewood Road, NE BITNET: walt@EMORY Atlanta, GA 30329 USA Voice: +1 404 727 0648