Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm 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 In-Reply-To: MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: Re: Programatically finding value of "cygdrive" prefix Message-ID: From: Fred Kulack Date: Tue, 16 Aug 2005 09:22:13 -0500 Content-Type: text/plain; charset="US-ASCII" X-IsSubscribed: yes On 08/16/2005 at 08:25:18 AM, cygwin-owner wrote: mount -m | grep -- --change-cygdrive-prefix | \ xargs bash -c 'while [ $# != 1 ]; do shift; done; echo "$@"' -- --- end of excerpt --- Why the complexity? Is there something wrong with this? > regtool get "/HKCU/Software/Cygnus Solutions/Cygwin/mounts v2/cygdrive prefix" / "It was a rigorous result in information theory that once you could learn in a sufficiently flexible manner - something humanity had achieved in the Bronze Age - the only limits you faced were speed and storage; any other structural changes were just a matter of style." [Schild's Ladder by Greg Egan] Fred A. Kulack - IBM eServer iSeries - Enterprise Application Solutions ERP, Java DB2 access, Jdbc, JTA, etc... IBM in Rochester, MN (Phone: 507.253.5982 T/L 553-5982) mailto:kulack/us.ibm.com Personal: mailto:kulack/gmail.com AIM Home:FKulack AIM Work:FKulackWrk MSN Work: fakulack/hotmail.com (replace email / with @) -- 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/