Heads-up: postinstall scripts and PATH (Attn all package maintainers)
Igor Pechtchanski
pechtcha@cs.nyu.edu
Tue Feb 24 20:36:00 GMT 2004
On Tue, 24 Feb 2004, Harold L Hunt II wrote:
> Igor,
>
> So, can I get an example of how to do this setting of the PATH? Is it
> as easy as:
>
> PATH=/bin
>
> ???
Almost. IMO, it should be
PATH=/bin:$PATH
export PATH
instead. But I may be wrong, and there may be no reason to keep the old
$PATH value. You do need the "export", though.
> Is it going to be a problem to have "#!/bin/bash" or "#!/bin/sh" at the
> top of the script? If so, what should that be instead?
>
> Harold
No, as long as the explicit path to an executable is used (i.e.,
"/bin/sh" rather than "sh"), it's ok.
Igor
--
http://cs.nyu.edu/~pechtcha/
|\ _,,,---,,_ pechtcha@cs.nyu.edu
ZZZzz /,`.-'`' -. ;-;;,_ igor@watson.ibm.com
|,4- ) )-,_. ,\ ( `'-' Igor Pechtchanski, Ph.D.
'---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow!
"I have since come to realize that being between your mentor and his route
to the bathroom is a major career booster." -- Patrick Naughton
More information about the Cygwin-apps
mailing list