This is the mail archive of the cygwin mailing list for the Cygwin project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
On Wed, Aug 10, 2005 at 09:01:43PM -0500, Ken Dibble wrote:If I read the man page correctly:
Christopher Faylor wrote:
On Wed, Aug 10, 2005 at 03:14:36PM -0700, L Anderson wrote:In my attempt to understand, can you tell me where (and why) this would fail?
Oops! I meant also to add thatAnd it still includes trailing spaces in the eventual result.
mount -p | sed -nr '2s/(.*) +\S+ +\S+/\1/p'
is even a shorter version.
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.
cgf
Since all this script does is take this output of mount -m and parse it.... Is "mount -m" is broken then?
-- 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/
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |