delorie.com/archives/browse.cgi | search |
Mailing-List: | contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm |
List-Subscribe: | <mailto:cygwin-subscribe AT sources DOT redhat DOT com> |
List-Archive: | <http://sources.redhat.com/ml/cygwin/> |
List-Post: | <mailto:cygwin AT sources DOT redhat DOT com> |
List-Help: | <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs> |
Sender: | cygwin-owner AT sources DOT redhat DOT com |
Delivered-To: | mailing list cygwin AT sources DOT redhat DOT com |
Date: | Fri, 18 May 2001 23:53:21 +0400 |
From: | egor duda <deo AT logos-m DOT ru> |
X-Mailer: | The Bat! (v1.45) Personal |
Reply-To: | egor duda <cygwin AT cygwin DOT com> |
Organization: | deo |
X-Priority: | 3 (Normal) |
Message-ID: | <106195998480.20010518235321@logos-m.ru> |
To: | Doru Carastan <doru DOT carastan AT windriver DOT com> |
CC: | cygwin AT cygwin DOT com |
Subject: | Re: 1.1.8: cygpath doesn't expand ~ correctly when running sh |
In-reply-To: | <3B057A16.187592E9@windriver.com> |
References: | <3B057A16 DOT 187592E9 AT windriver DOT com> |
Mime-Version: | 1.0 |
Hi! Friday, 18 May, 2001 Doru Carastan doru DOT carastan AT windriver DOT com wrote: D:\cygwin\bin>sh -c "echo $HOME" DC> /home/carastan D:\cygwin\bin>sh -c "echo ~/bin" DC> ~/bin D:\cygwin\bin>sh -c "./cygpath -au ~/bin" DC> /usr/bin/~/bin DC> but D:\cygwin\bin>bash -c "./cygpath -au ~/bin" DC> /home/carastan/bin DC> and D:\cygwin\bin>cygpath -au ~/bin DC> /home/carastan/bin DC> work fine. Any ideas why? tilde expansion is a shell feature, not cygpath's. bash is doing it, ash isn't. cygwin itself is doing it too, but only when application is run from windows shell, not from other cygwin application. that's why your last command expanded tilde correctly. anyway, "cygpath" has nothing to do with tilde expansion. Egor. mailto:deo AT logos-m DOT ru ICQ 5165414 FidoNet 2:5020/496.19 -- Want to unsubscribe from this list? Check out: http://cygwin.com/ml/#unsubscribe-simple
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |