| delorie.com/archives/browse.cgi | search |
| Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
| List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
| List-Archive: | <http://sources.redhat.com/ml/cygwin/> |
| List-Post: | <mailto:cygwin AT cygwin DOT com> |
| List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs> |
| Sender: | cygwin-owner AT cygwin DOT com |
| Mail-Followup-To: | cygwin AT cygwin DOT com |
| Delivered-To: | mailing list cygwin AT cygwin DOT com |
| Message-ID: | <3EFDE1C3.EE42943B@dessent.net> |
| Date: | Sat, 28 Jun 2003 11:43:15 -0700 |
| From: | Brian Dessent <brian AT dessent DOT net> |
| Organization: | My own little world... |
| X-Accept-Language: | en,pdf |
| MIME-Version: | 1.0 |
| To: | cygwin AT cygwin DOT com |
| Subject: | Re: example needed pls: `cygpath -c <HANDLE>' |
| References: | <Xns93A88A37D41F9soren1Gmane AT 80 DOT 91 DOT 224 DOT 249> <3EFDDF97 DOT 29F49125 AT dessent DOT net> |
Brian Dessent wrote:
> my $foo = quotemeta($MS_path_filename);
> chomp (my $cygpath = chomp `cygpath -u $foo`);
> # now $cygpath should be usable
Whoops, that second line should be:
chomp (my $cygpath = `cygpath -u $foo`);
I sure wish you could just do something like `"cygpath -u" .
quotemeta($path)` or qr{cygpath -u quotemeta($path)} but neither of
these is valid, so you have to create a temp variable first.
Brian
--
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/
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |