Re: bash: WHY???
From: Stuart Lamble (7d3-4-09@carousel.its.monash.edu.au)
Date: 04/09/03
- Next message: do@notspam.com: "ANNOUNCE: TkMan 2.2, a graphical, hypertext manual page and Texinfo browser"
- Previous message: Rev. Don Kool: "Re: solaris as a router"
- In reply to: Chet Ramey: "Re: bash: WHY???"
- Next in thread: Rev. Don Kool: "Re: bash: WHY???"
- Reply: Rev. Don Kool: "Re: bash: WHY???"
- Reply: Paul Eggert: "Re: bash: WHY???"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
From: Stuart Lamble <7d3-4-09@carousel.its.monash.edu.au> Date: 8 Apr 2003 22:34:55 GMT
In article <b6v6bq$9q5$1@eeyore.INS.cwru.edu>, Chet Ramey wrote:
> In article <slrnb926r2.2pek.phil+s3@bolthole.com>,
> Philip Brown <phil+s3@bolthole.no-bots.com> wrote:
>>[Note: I'm using "POSIX-compliant" to mean "support all functions
>> of POSIX, and ***only*** POSIX functions]
>
> Bash has never claimed to do this, and never will. Nobody wants a shell
> with only POSIX functionality. POSIX compliance means that posix scripts --
> scripts written using the documented POSIX features -- will run
> correctly, not that these documented features are all that's available.
The trouble with that is easily explained. I write a shell script that
is supposed to be portable to other Unix systems. I set it up so that it
uses #!/bin/sh as its magic line. I only have a Linux system to test it,
so I test it on that Linux system. It works. I assume that it will
therefore work on other Unix systems, and ship it.
Then I start getting the bug reports from users of Solaris, Tru64,
HP-UX, AIX, etc., saying that it doesn't work. The more clueful bug
reports point out the bash-isms in the script.
In my case, I have access to Solaris and Tru64 (and a couple of Irix)
boxen, so I can test for this sort of stuff without too much trouble.
But for the average n00bie, all that is available for Linux.
It was a source of never ending aggravation for me whilst I was running
OpenBSD on my desktop[1] -- and when I'm trying to get stuff to run on
my Mac -- that far too many programmers assume that Linux is the world.
Don't document your software as "Unix" when it only runs cleanly out of
the box on Linux! I don't have the time to track down and fix every
Linux-ism if I need a particular package to run on a non-Linux OS. This
is getting off-topic, but it's a greater example of exactly what we're
talking about -- the assumption that Linux is the world, and that Linux
is all that matters. IT ISN'T.
[1] I had an overseas holiday, and wanted to be able to log in safely
from Internet cafes. The easiest way to do that was to use OPIE.
Linux's support for OPIE is patchy at best; I felt the quickest
solution was to install one of the BSDs, which have OPIE built in.
-- My Usenet From: address now expires after two weeks. If you email me, and the mail bounces, try changing the bit before the "@" to "usenet".
- Next message: do@notspam.com: "ANNOUNCE: TkMan 2.2, a graphical, hypertext manual page and Texinfo browser"
- Previous message: Rev. Don Kool: "Re: solaris as a router"
- In reply to: Chet Ramey: "Re: bash: WHY???"
- Next in thread: Rev. Don Kool: "Re: bash: WHY???"
- Reply: Rev. Don Kool: "Re: bash: WHY???"
- Reply: Paul Eggert: "Re: bash: WHY???"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|