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: astksh review


On Tue, 27 May 2003, Joe Buehler wrote:

> Igor Pechtchanski wrote:
>
> > Maybe just run all postinstall scripts with "set -x", and parse the
> > output?  At least initially...
>
> Depending on the shell, you won't see anything executed in a shell
> function.

I'm sure it's possible to build a postinstall script that would circumvent
this mechanism.  However, this is the case when it's in the interest of
the maintainers to cooperate with setup.exe.  So, if you, for example, use
a shell in which functions aren't traced with the -x flag, put a "set -x"
inside each function.
	Igor
P.S. bash does propagate -x to function execution unless specifically
turned off inside functions.
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_		pechtcha@cs.nyu.edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor@watson.ibm.com
     |,4-  ) )-,_. ,\ (  `'-'		Igor Pechtchanski
    '---''(_/--'  `-'\_) 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]