[gnu.bash.bug] bash/sh incompatibility

root@devon.lns.pa.us (Mark Buda) (07/16/89)

Greetings. I've just gotten bash to work on a Genix 4.1BSD system. Well,
almost - job control is still screwed up. I got a copy of bash because
I want to run C news, which relies heavily on shell scripts, and my Bourne
shell is broken (plus the fact that I collect software, especially free
software). Now, C News warns the user somewhere in the documentation that
certain parts of it rely on precise compatibility with the Real Bourne Shell -
things that even the Korn shell gets wrong. Not having a copy of the Korn
shell, I don't know what these are... but here's an incompatibility I just
found:

test " 5" -le 0
is accepted by the Bourne shell. Bash complains that it wants an integer
before a -le.

A more complete list is sure to follow.

Mark Buda
hermit@chessene.uucp
devon.lns.pa.us!chessene!hermit
...!rutgers!devon!chessene!hermit
hermit%chessene@devon.lns.pa.us