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 Date: Wed, 10 Aug 2005 22:21:21 -0400 From: Christopher Faylor To: cygwin AT cygwin DOT com Subject: Re: Programatically finding value of "cygdrive" prefix Message-ID: <20050811022121.GA16476@trixie.casa.cgf.cx> Reply-To: cygwin AT cygwin DOT com References: <42FA4604 DOT 8000507 AT tlinx DOT org> <20050810183616 DOT GA5892 AT trixie DOT casa DOT cgf DOT cx> <20050810184119 DOT GA6155 AT trixie DOT casa DOT cgf DOT cx> <42FA7608 DOT 4070501 AT serv DOT net> <42FA7C4C DOT 4010607 AT serv DOT net> <20050811012423 DOT GD10161 AT trixie DOT casa DOT cgf DOT cx> <42FAB187 DOT 8020503 AT alltel DOT net> <20050811020633 DOT GF10161 AT trixie DOT casa DOT cgf DOT cx> <42FAB49E DOT 2010401 AT alltel DOT net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <42FAB49E.2010401@alltel.net> User-Agent: Mutt/1.5.8i On Wed, Aug 10, 2005 at 09:14:54PM -0500, Ken Dibble wrote: >Christopher Faylor wrote: >>On Wed, Aug 10, 2005 at 09:01:43PM -0500, Ken Dibble wrote: >>>In my attempt to understand, can you tell me where (and why) this would >>>fail? >>> >>>mount -m | grep "mount -u" | tail -1 | awk '{print $5}' >> >>It doesn't deal with imbedded spaces in the cygdrive prefix -- >>i.e., the point of this exercise. > >If I read the man page correctly: > > -m, --mount-commands > write mount commands to replace user and system mount >points and > cygdrive prefixes > >Since all this script does is take this output of mount -m and parse it.... >Is "mount -m" is broken then? > >Am I not understanding the man page or am I so dense that I'm missing >something? Hint: What does "awk '{print $5}'" do? cgf -- 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/