This is the mail archive of the cygwin-apps@cygwin.com mailing list for the Cygwin 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: Heads-up: postinstall scripts and PATH (Attn all package maintainers)


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


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