This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
Re: 1.1.8: cygpath doesn't expand ~ correctly when running sh
- To: Doru Carastan <doru dot carastan at windriver dot com>
- Subject: Re: 1.1.8: cygpath doesn't expand ~ correctly when running sh
- From: egor duda <deo at logos-m dot ru>
- Date: Fri, 18 May 2001 23:53:21 +0400
- CC: cygwin at cygwin dot com
- Organization: deo
- References: <3B057A16.187592E9@windriver.com>
- Reply-To: egor duda <cygwin at cygwin dot com>
Hi!
Friday, 18 May, 2001 Doru Carastan doru.carastan@windriver.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@logos-m.ru ICQ 5165414 FidoNet 2:5020/496.19
--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple