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, Feb 24, 2004 at 05:03:27PM -0700, 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 ....

Except that I'm returning either "binary" or "text" which would make it:

case "`cygpath --mode /foo`"; in
   binary) echo it is binary ;;
   text) echo it is text ;;
esac

>cygpath would not have to print anything, but just return 1 or 0, as 
>appropriate.

That is not how cygpath works in any other scenario, I don't see any reason
to deviate from its current behavior.

cgf


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