autoconf
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: sh compatibility question


From: Gary V. Vaughan
Subject: Re: sh compatibility question
Date: Fri, 22 Sep 2000 22:38:32 +0100
User-agent: Mutt/1.2.5i

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
> 
> test -f /bin/bsh && test -z "$RUNNING_BSH" \
>   && { UNAMES=`uname -s`; test "x$UNAMES" = xAIX; } 2>/dev/null \
>   && { RUNNING_BSH=true; export RUNNING_BSH; exec /bin/bsh $0 ${1+"$@"}; }
> unset RUNNING_BSH
> 
> Gary has a better method somewhere.

Attached =)O|

Cheers,
        Gary.
-- 
  ___              _   ___   __              _         mailto: address@hidden
 / __|__ _ _ ___ _| | / / | / /_ _ _  _ __ _| |_  __ _ ___       address@hidden 
| (_ / _` | '_|// / |/ /| |/ / _` | || / _` | ' \/ _` | _ \
 \___\__,_|_|\_, /|___(_)___/\__,_|\_,_\__, |_||_\__,_|//_/
home page:  /___/                      /___/                  gpg public key:
http://www.oranda.demon.co.uk           http://www.oranda.demon.co.uk/key.asc

Attachment: reexec.sh
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]