Re: if eslif fi . . .in BASH

From: Goran Larsson (hoh_at_invalid.invalid)
Date: 05/12/03


Date: Mon, 12 May 2003 14:27:21 GMT

In article <b9o5l3$l4rch$1@ID-82947.news.dfncis.de>,
Reptilian Atrophy <DavidG997@yahoo.com> wrote:

> what a ridiculous language bash is . elif

The use of ``elif'' is the same in sh, ksh, zsh, and any other shell
using the Bourne shell syntax, originally implemented in 1979. It is
also specified in the UNIX 93, UNIX 95 (Single UNIX Specification, SUS),
UNIX 98 (Single UNIX Specification V2, SUSv2), and POSIX (IEEE 1003.2)
standards.

> have to invent our own . . .

The ``if-then-elif-fi'' and ``case-in-esac'' structures of the Bourne
shell was implemented after the ``if-then-elif-fi'' and ``case-in-out-esac''
of Algol-68, i.e. a concept more than 35 years old.

> Frigging ridiculous.

Yes. Complaining when a shell follows standards is ridiculous.

-- 
Göran Larsson     http://www.mitt-eget.com/


Relevant Pages

  • Re: Ada.Command_Line and wildcards
    ... with Unix design choices, that is "only" a shell thing and the shell ... I find it difficult to imagine Unix without the ...
    (comp.lang.ada)
  • Re: Ada.Command_Line and wildcards
    ... that is "only" a shell thing and the shell ... I find it difficult to imagine Unix without the ... And the shell is, I repeat, no programming language, but a ... When I mean Unix design choices, I mean Unix as it was planned, ...
    (comp.lang.ada)
  • Re: Ada.Command_Line and wildcards
    ... we had been talking about Unix design choices ... shell programming. ... There are shells that are based on established programming ...
    (comp.lang.ada)
  • Re: Shell Scripting is as lame as VB.
    ... > r> issue with a dozen or so slightly different variants of the shell, ... I think it's ironic that you speak of "standards" hampering the ... As is often the case in the Unix ... > There's also scsh, a Scheme-based shell. ...
    (comp.os.linux.misc)
  • Re: Shell Scripting is as lame as VB.
    ... > r> issue with a dozen or so slightly different variants of the shell, ... I think it's ironic that you speak of "standards" hampering the ... As is often the case in the Unix ... > There's also scsh, a Scheme-based shell. ...
    (comp.os.linux.development.apps)