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