🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.bash.bug
Article #244

Differences between bash-1.12 and ksh88

#244
From: Scott Weikart
Date: Thu, 30 Jul 1992 20:48
37 lines
1962 bytes
I've only been reading this newsgroup for a while, because only recently did I
start using bash (now I use it on all my machines, it's great!).  So this
question has perhaps been discussed before.

Does anyone have a list of incompatibilities between bash and the 1988 version
of ksh?  I'm mostly interested in the differences that are a problem for shell
script programmers (I've been writing probably 500 lines/month of ksh for the
last four years).  Here's my current list of problematic bash-1.12
differences:

   1) set options aren't local to a function

   2) doesn't support -L -R -Z -l -u args to typeset

   3) 'typeset -i i ; [ i=i+1 -gt 0 ]' doesn't work as expected

   4) doesn't support (( )), only let and typeset -i

   5) $(< file) doesn't work

   6) 'ENV_VAR=temp_value foo foo_args' doesn't work if foo is a shell function

   7) doesn't have a print command with the various options

   8) typeset -i foo=0123 will store 83 into foo (i.e. leading 0 means octal)

These are listed in rough order of inverse importance, with 1 and 2 being the
most problematic.

By the way, I'd care less about the typeset options (except for -l and -u) if
there were a printf builtin (which would seem easy to implement).  I use the
'printf' command I got off Usenet at times, but usually I don't want to expend
the exec.

Scott Weikart			Community Data Processing (CdP): 415-322-9069
Internet: scott@igc.org		Bitnet: scott%igc.org@stanford
UUCP Mail Net: uunet!cdp!scott
Technical Details
Message-ID: <9207302048.AA11529@cdp.igc.org>
Path: arc1-ca.pugleaf.net!sparky!uunet!europa.asd.contel.com!darwin.sura.net!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!igc.apc.org!scott

Show Full Headers
Complete Article Headers
Newsgroups: gnu.bash.bug
Path: arc1-ca.pugleaf.net!sparky!uunet!europa.asd.contel.com!darwin.sura.net!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!igc.apc.org!scott
From: scott@igc.apc.org (Scott Weikart)
Subject: Differences between bash-1.12 and ksh88
Message-ID: <9207302048.AA11529@cdp.igc.org>
Sender: gnulists@ai.mit.edu
Organization: GNUs Not Usenet
Distribution: gnu
Date: Thu, 30 Jul 1992 20:48:19 GMT
Approved: bug-bash@prep.ai.mit.edu
Lines: 38