🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.bash.bug
Article #333

bash/sh incompatibility

#333
From: Mark Buda
Date: Sun, 16 Jul 1989 04:08
21 lines
1289 bytes
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
Technical Details
Message-ID: <8907160008.AA01561@chessene.uucp>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!tut.cis.ohio-state.edu!devon.lns.pa.us!chessene!root

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!tut.cis.ohio-state.edu!devon.lns.pa.us!chessene!root
From: chessene!root@devon.lns.pa.us (Mark Buda)
Newsgroups: gnu.bash.bug
Subject: bash/sh incompatibility
Message-ID: <8907160008.AA01561@chessene.uucp>
Date: 16 Jul 89 04:08:37 GMT
Sender: daemon@tut.cis.ohio-state.edu
Distribution: gnu
Organization: GNUs Not Usenet
Lines: 21