This is the mail archive of the
cygwin-apps@cygwin.com
mailing list for the Cygwin project.
Re: Heads-up: postinstall scripts and PATH (Attn all package maintainers)
On Tue, 24 Feb 2004, Warren Young wrote:
> Christopher Faylor wrote:
>
> > Is there a better name than --mode?
>
> It might be easier to use in a script if the syntax were more like this:
>
> if [ cygpath --is-binary /tmp ] ; then ....
In this case, it'll be "if cygpath --is-binary /tmp; then"...
> cygpath would not have to print anything, but just return 1 or 0, as
> appropriate.
Well, the overhead of 'if [ `cygpath --mount-mode /tmp` = "binary" ]'[*]
over that of your suggestion would be negligible... And having one option
with text output allows us to have outputs like "binary,managed" that can
be parsed later instead of one option per mode...
Igor
[*] Perhaps "--access-mode" would be better than "--mount-mode"...
--
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