Patch to gcc_release

Alexandre Oliva aoliva@redhat.com
Wed Nov 14 14:01:00 GMT 2001


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

> Why does cron run things with such a restrictive environment (only /bin
> and /usr/bin in the PATH, no USER, ...)?

Probably just because the shell started by cron isn't a login shell,
so it doesn't load the user's profile.

> -	  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.

-- 
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



More information about the Gcc-patches mailing list