X-Recipient: archive-cygwin AT delorie DOT com X-Spam-Check-By: sourceware.org Message-ID: <47DCB174.9030701@cwilson.fastmail.fm> Date: Sun, 16 Mar 2008 00:34:44 -0500 From: Charles Wilson User-Agent: Thunderbird 2.0.0.12 (Windows/20080213) MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: Avail for test: csih-0.1.2-1 [was: Re: csih and sspi with guest accounts] References: <47CE07A2 DOT 5030505 AT cwilson DOT fastmail DOT fm> <47CEE4DD DOT 6030608 AT x-ray DOT at> <47D2F243 DOT 4090309 AT x-ray DOT at> <47D39192 DOT 2020801 AT cwilson DOT fastmail DOT fm> <47D42EA7 DOT 1000909 AT x-ray DOT at> In-Reply-To: <47D42EA7.1000909@x-ray.at> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Reini Urban wrote: > Charles Wilson schrieb: >> Let me know what you think... > > Featurewise great! Thanks. Thanks for testing. > $ /usr/lib/csih/getAccountName -g > Gast > > $ source /usr/share/csih/cygwin-service-installation-helper.sh > basename: invalid option -- b > Try `basename --help' for more information. > > $ echo $0 > -bash > > This was sourced from the login shell bash, which runs inside the putty > cthelper console, not from the postinstaller. > Just a minor nitpick for shell scripts starting with - I think I've fixed all the places where this is a danger. This new version also provides a new utility (/usr/lib/csih/winProductName) which reports the full Microsoft name of the OS, whether it's "Vista Ultimate" or "Server 2008 Datacenter Edition (core installation), 64bit". winProductName is extremely dumb: it takes no command line options, and there is no help. You just run it and it prints the name to stdout. That's it. Also, two new ID functions that rely on the new tool: csih_is_exactly_vista csih_is_exactly_server2008 (I'm sure there are other uses for winProductName, such as is_server() etc, but I'll leave that kind of thing to individual scripts -- who can do productName=$(csih_invoke_helper winProductName) if echo "${productName}" | grep " Server " >/dev/null 2>&1 then do whatever fi themselves, until some particular incantation looks useful and is duplicated across various installers. Then I'd put it in csih.) I'm going to make this current in a few days (assuming no brown bags)... -- Chuck P.S. cgf or Corinna, two questions: (1) is it possible to create a CVS module for this on the cygwin-apps repository, and (2) do you think it would be a good idea to do so? -- 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/