Mathias Feiler on Fri, Dec 11, 1998 at 12:17:34AM +0100:
> So sorry, but I got both,
> aix 4.1 with BASH2.0
> and
> redhat 5.1 with kernel 2.0.35 and afs
> and with both of them I can do
> jobs | grep pattern
> without any problem.
Seems that everyone can but me :(
> by the Way... it is usualy a good idea to use
> #!/bin/sh
> as the first line (not bash) and relay to just the bourn-shell syntax
> since this is the shell (or syntax-subset) which comes per default
> with als systems I know. This way You are more Instalation- and
> System-independend
This really is no guarantee that /bin/sh limits itself to a sh-only
subset. On most Linux boxes bash invoked with argv[0] of sh will behave
differently, but still accepts some things which the original sh
wouldn't. Dennis Ritchie has on his site some of the historical man
pages for sh and others; I write to those when I want to be portable.
> By the other Way .....
> on AIX 4.1 I can see this :
> /usr/bin/jobs
> which is a shellskript. Have a closer look,
I did, it calls some psh (what is this? I can't find a man page for it)
to use its builtins, apparently ksh doesn't have these and 15 other
commands that link to this script. How strange.
> it seams to be a workaround for the kornshell ?!
Just makes me dislike ksh even more ;)
--
Scott