Info about OS by command in Cygwin

Charles Wilson
Sat Mar 7 15:25:00 GMT 2009

Thomas Wiedmann wrote:
>> Also, /usr/lib/csih/winProductName.exe (Note that this is technically a
>> native, not cygwin, application, so you need to strip '\r' from the
>> result if you're using it in a script).
> What does the subdirectory csih stand for, i. e. what means this
> abbreviation?


But a short investigation would have revealed it:

$ cygcheck -f /usr/lib/csih/winProductName.exe

$ cygcheck -l csih

Oh, look: one of these files stands out:

C. S. I. H.

> How to strip '\r' from the result for using it in a script?

myvar=`/usr/lib/csih/winProductName.exe | tr -d '\15'`

is probably the simplest.


Unsubscribe info:
Problem reports:

More information about the Cygwin mailing list