Re: sh compatibility question

2000-09-27 Thread Gary V. Vaughan
On Wed, Sep 20, 2000 at 04:37:43PM +0200, Akim Demaille wrote: > > #!/bin/sh > > test -f /bin/sh5 && test -z "$RUNNING_SH5" \ > && { UNAMES=`uname -s`; test "x$UNAMES" = xULTRIX; } 2>/dev/null \ > && { RUNNING_SH5=true; export RUNNING_SH5; exec /bin/sh5 $0 ${1+"$@"}; } > unset RUNNING_SH5 >

Re: sh compatibility question

2000-09-20 Thread Martin Wilck
The reason I asked is the fortran dependency tracker that I'm writing. I just figured that I could write some things more elegantly if shell functions were allowed. If I understand right what Akim writes, I do not need to worry about shells without functions in a fortran dependency tracking tool

Re: sh compatibility question

2000-09-20 Thread Akim Demaille
> "Pavel" == Pavel Roskin <[EMAIL PROTECTED]> writes: Pavel> Hello, Akim! >> You may fall on some lonely hermit who decided plain old >> functionless sh was enough for him, but then 1. he is certainly not >> interested in your scripts, or 2. if he wants them, let him install >> bash. Pavel>

Re: sh compatibility question

2000-09-20 Thread Pavel Roskin
Hello, Akim! > You may fall on some lonely hermit who decided plain old functionless > sh was enough for him, but then 1. he is certainly not interested in > your scripts, or 2. if he wants them, let him install bash. One important point - bash used a configure script produced by Autoconf. This

Re: sh compatibility question

2000-09-20 Thread Akim Demaille
> "Martin" == Martin Wilck <[EMAIL PROTECTED]> writes: Martin> I wonder why autoconf doesn't use shell functions. Is that a Martin> compatibility issue? According to the bash info pages, shell Martin> functions belong to the POSIX standard for the Bourne shell. You are twice right, but the

sh compatibility question

2000-09-20 Thread Martin Wilck
I wonder why autoconf doesn't use shell functions. Is that a compatibility issue? According to the bash info pages, shell functions belong to the POSIX standard for the Bourne shell. -- Martin Wilck <[EMAIL PROTECTED]> Institute for Tropospheric Research, Permoserstr. 15, D-04318 Leipzig, Germa