[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: PATH then SHELLS (Was: bison-1.29c 'configure' problems on Solaris 8
From: |
Paul Eggert |
Subject: |
Re: PATH then SHELLS (Was: bison-1.29c 'configure' problems on Solaris 8) |
Date: |
Fri, 5 Oct 2001 03:46:59 -0700 (PDT) |
> From: Akim Demaille <address@hidden>
> Date: 05 Oct 2001 11:10:34 +0200
>
> Errr, I don't understand this paragraph, which seems to agree with
> me. I'm asking why we *don't* loop over shells (hence bash before
> sh), and then over path.
Because if you loop over shells first, then you're more likely to find
a shell in a weird and undesirable place. For example, if the code
looks something like this:
for shell in sh bash ksh; do
for dir in /bin /usr/bin /home/eggert/bin; do
if ok_shell $dir/$shell; then
SHELL=$dir/shell
break 2 # unportable, but it's just an example
fi
done
done
then on Solaris 8 this code is likely to return SHELL=/home/eggert/sh,
since /bin/sh and /usr/bin/sh are old-fashioned. It doesn't matter if
you reorder the shells; even if the first line said 'for shell in bash
ksh sh; do' you'd still have the problem.
- Re: bison-1.29c 'configure' problems on Solaris 8., (continued)
- Re: bison-1.29c 'configure' problems on Solaris 8., Russ Allbery, 2001/10/03
- Re: bison-1.29c 'configure' problems on Solaris 8., Paul Eggert, 2001/10/04
- Re: bison-1.29c 'configure' problems on Solaris 8., Akim Demaille, 2001/10/04
- Re: bison-1.29c 'configure' problems on Solaris 8., Akim Demaille, 2001/10/04
- Re: bison-1.29c 'configure' problems on Solaris 8., Paul Eggert, 2001/10/04
- Re: Libtool and echo (Was: bison-1.29c 'configure' problems on Solaris 8), Akim Demaille, 2001/10/05
- Re: Libtool and echo (Was: bison-1.29c 'configure' problems on Solaris 8), Gary V. Vaughan, 2001/10/05
- Re: Libtool and echo (Was: bison-1.29c 'configure' problems on Solaris 8), Paul Eggert, 2001/10/05
- Re: Libtool and echo (Was: bison-1.29c 'configure' problems on Solaris 8), Gary V. Vaughan, 2001/10/06
- Re: PATH then SHELLS (Was: bison-1.29c 'configure' problems on Solaris 8), Akim Demaille, 2001/10/05
- Re: PATH then SHELLS (Was: bison-1.29c 'configure' problems on Solaris 8),
Paul Eggert <=
Re: bison-1.29c 'configure' problems on Solaris 8., Akim Demaille, 2001/10/04
- Re: bison-1.29c 'configure' problems on Solaris 8., Paul Eggert, 2001/10/04
- Re: bison-1.29c 'configure' problems on Solaris 8., Akim Demaille, 2001/10/05
- Re: bison-1.29c 'configure' problems on Solaris 8., Gary V. Vaughan, 2001/10/05
- Re: bison-1.29c 'configure' problems on Solaris 8., Akim Demaille, 2001/10/19
- Re: bison-1.29c 'configure' problems on Solaris 8., Gary V. Vaughan, 2001/10/19
- Functions / sattelite scripts (Was: bison-1.29c 'configure' problems on Solaris 8.), Lars J. Aas, 2001/10/20
Re: bison-1.29c 'configure' problems on Solaris 8., Paul Eggert, 2001/10/05
proposed patch to re-execute "configure" with a LINENO-grokking shell, Paul Eggert, 2001/10/05
Re: proposed patch to re-execute "configure" with a LINENO-grokking shell, Tim Van Holder, 2001/10/06