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: setup / postinastall script question


On Fri, 9 Jul 2004, Gerrit P. Haase wrote:

> Hello,
>
> will it work with setup.exe to set the PATH in a postinstall script?

A postinstall script is just like any other shell script.  I don't see any
reason why it wouldn't.

> I.e.:
>
> export PATH=/usr/X11R6/bin:$PATH
> * do something *
> Gerrit

Well, postinstall scripts are usually run with /bin/sh, which means that
you'd have to use the following syntax:

PATH="/usr/X11R6/bin:$PATH"
export PATH

(note the quotes, BTW, as many Windows paths have spaces).
HTH,
	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]