This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: Info about OS by command in Cygwin
- From: Charles Wilson <cygwin at cwilson dot fastmail dot fm>
- To: cygwin at cygwin dot com
- Date: Sat, 07 Mar 2009 10:25:20 -0500
- Subject: Re: Info about OS by command in Cygwin
- References: <gobb1o$6li$1@ger.gmane.org> <49A93341.7040809@t-online.de> <49A98766.3060601@cwilson.fastmail.fm> <gotonj$imi$1@ger.gmane.org>
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?
cygwin-service-installation-helper
But a short investigation would have revealed it:
$ cygcheck -f /usr/lib/csih/winProductName.exe
csih-0.1.8-1
$ cygcheck -l csih
/usr/lib/csih/getAccountName.exe
/usr/lib/csih/getVolInfo.exe
/usr/lib/csih/winProductName.exe
/usr/share/csih/cygwin-service-installation-helper.sh
/usr/share/doc/csih-0.1.8/AUTHORS
/usr/share/doc/csih-0.1.8/ChangeLog
/usr/share/doc/csih-0.1.8/COPYING
/usr/share/doc/csih-0.1.8/NEWS
/usr/share/doc/Cygwin/csih-0.1.8.README
Oh, look: one of these files stands out:
/usr/share/csih/cygwin-service-installation-helper.sh
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.
--
Chuck
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/