sh man page ....

Michael Sierchio kudzu at tenebras.com
Fri Oct 10 15:30:35 UTC 2014


On Fri, Oct 10, 2014 at 8:30 AM, William A. Mahaffey III <wam at hiwaay.net> wrote:

>.....I had a bunch of shell scripts written to use Linux
> sh, which was in fact bash, which means it had a superset of the arithmetic
> operators that traditional sh had. When I use these scripts under sh under
> FBSD 9.3, they largely work, though there are some minor differences (empty
> strings evaluate to zero (0) under bash, error under sh). The man page for
> sh doesn't reflect some of these compatibilities/incompatibilities,

Nor should it. The Bourne Shell is the Bourne Shell, is adequately
documented by the man page, and warnings about incompatibility are the
responsibility of those who foist off bash as sh.

You're blaming your own bad habit on others. :-)

- M


More information about the freebsd-questions mailing list