This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Patch to gcc_release


On Nov 25, 2001, "Joseph S. Myers" <jsm28@cam.ac.uk> wrote:

> On 25 Nov 2001, Alexandre Oliva wrote:
>> > -	  PATH=~:$PATH;;
>> > +	  PATH=~:/usr/local/bin:$PATH;;
>> 
>> I strongly suggest changing `~' to `$HOME'.  Bourne shell knows
>> nothing about `~', even though bash expands it to $HOME.

> What then are your plans to install a non-POSIX sh on gcc.gnu.org (the
> only place this part of the code gets used)?  What shell exactly do you
> have in mind that supports shell functions but not ~?

I have no such plans (and even if I had, I wouldn't be able to do
anything about them :-), but I know there are a lot of Bourne shells
that support shell functions but not `~'.  I just dislike seeing
non-portable shell code when there's a trivial portable alternative.

-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer                  aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp        oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist    *Please* write to mailing lists, not to me


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]