delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1997/07/15/22:22:10

From: dbe AT wgn DOT net ("$Bill Luebkert")
Subject: Re: cygnus bugs
15 Jul 1997 22:22:10 -0700 :
Approved: cygnus DOT gnu-win32 AT cygnus DOT com
Distribution: cygnus
Message-ID: <33CC3B24.364F.cygnus.gnu-win32@wgn.net>
References: <199707121921 DOT JAA02783 AT haleakala DOT aloha DOT net> <199707130728 DOT RAA03575 AT murlibobo DOT cs DOT mu DOT OZ DOT AU> <33c8f0a3 DOT 1384462 AT world DOT std DOT com> <199707140254 DOT MAA02915 AT mundook DOT cs DOT mu DOT OZ DOT AU> <33C9D7BB DOT 6D8F AT wgn DOT net> <199707150754 DOT RAA05897 AT murlibobo DOT cs DOT mu DOT OZ DOT AU>
Reply-To: dbe AT wgn DOT net
Mime-Version: 1.0
X-Mailer: Mozilla 3.01Gold (Win95; I)
Original-To: gnu-win32 AT cygnus DOT com
Original-Sender: owner-gnu-win32 AT cygnus DOT com

Fergus Henderson wrote:
> 
> You still didn't answer the question: how can cygwin know which
> arguments are pathnames?  Finding a correct solution to this
> problem is entirely non-trivial.  If you mean that cygwin should
> treat everything that looks like it might be a pathname as a pathname,
> then that is not a correct solution, and I think an incorrect
> solution is going to cause more problems than it solves.

Quote the ones you don't want converted.

> For example, consider the command `sed /usr/p /usr/p'.
> In that command, the first argument is a sed command, meaning
> "print all lines containing `usr'", while the second argument
> is a file name.

sed '/usr/p' /usr/p

-- 
  ,-/-  __      _  _         $Bill Luebkert
 (_/   /  )    // //       DBE Collectibles
  / ) /--<  o // //      http://www.wgn.net/~dbe/
-/-' /___/_<_</_</_    Email: dbe AT wgn DOT net
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request AT cygnus DOT com" with one line of text: "help".

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019