This is the mail archive of the
cygwin-apps@cygwin.com
mailing list for the Cygwin project.
Re: astksh review
- From: Igor Pechtchanski <pechtcha at cs dot nyu dot edu>
- To: Joe Buehler <jbuehler at hekimian dot com>
- Cc: cygwin-apps at cygwin dot com
- Date: Tue, 27 May 2003 11:54:35 -0400 (EDT)
- Subject: Re: astksh review
- Reply-to: cygwin-apps at cygwin dot com
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