Subject: 1.1.8: cygpath doesn't expand ~ correctly when running sh
From: Doru Carastan <[email-masked]>
To: [email-masked]
Date: Fri, 18 May 2001 12:37:58 -0700

D:\cygwin\bin>sh -c "echo $HOME"
/home/carastan

D:\cygwin\bin>sh -c "echo ~/bin"
~/bin

D:\cygwin\bin>sh -c "./cygpath -au ~/bin"
/usr/bin/~/bin

but

D:\cygwin\bin>bash -c "./cygpath -au ~/bin"
/home/carastan/bin

and

D:\cygwin\bin>cygpath -au ~/bin
/home/carastan/bin

work fine. Any ideas why?

Thanks,
Doru Carastan

===================================================== Edited ===
Cygnus Win95/NT Configuration Diagnostics
Current System Time: Fri May 18 12:02:23 2001

WinNT Ver 4.0 build 1381 Service Pack 6

Path:   /usr/local/bin
        /usr/bin
        /bin
        /cygdrive/c/WINNT/system32
        /cygdrive/c/WINNT
        /cygdrive/c/Program Files/DevStudio/sharedide/bin
        /cygdrive/c/Program Files/DevStudio/VC/bin
        /home/carastan/bin

SysDir: C:\WINNT\System32
WinDir: C:\WINNT

PWD = `/home/carastan'
USER = `carastan'
MAKE_MODE = `unix'
HOME = `/home/carastan'

d:\cygwin\bin  /usr/bin  system  binmode
d:\cygwin\lib  /usr/lib  system  binmode
d:\cygwin  /        system  binmode
C:\Temp  /tmp     system  binmode
c:    /cygdrive/c  user    binmode,noumount
d:    /cygdrive/d  user    binmode,noumount

Found: d:\cygwin\bin\bash.exe
Found: d:\cygwin\bin\sh.exe

   73k 2001/05/02 d:\cygwin\usr\local\bin\cygltdl-3.dll
   45k 2001/04/25 d:\cygwin\bin\cygform5.dll
   17k 2001/01/07 d:\cygwin\bin\cyghistory4.dll
   14k 2000/10/23 d:\cygwin\bin\cygintl.dll
   45k 2000/10/22 d:\cygwin\bin\cygjbig1.dll
   26k 2001/04/25 d:\cygwin\bin\cygmenu5.dll
   15k 2001/04/25 d:\cygwin\bin\cygpanel5.dll
  108k 2001/01/07 d:\cygwin\bin\cygreadline4.dll
  631k 2001/04/25 d:\cygwin\bin\cygwin1.dll
    Cygwin DLL version info:
        dll major: 1003
        dll minor: 1
        dll epoch: 19
        dll bad signal mask: 19005
        dll old termios: 5
        dll malloc env: 28
        api major: 0
        api minor: 38
        shared data: 3
        dll identifier: cygwin1
        mount registry: 2
        cygnus registry name: Cygnus Solutions
        cygwin registry name: Cygwin
        program options name: Program Options
        cygwin mount registry name: mounts v2
        cygdrive flags: cygdrive flags
        cygdrive prefix: cygdrive prefix
        cygdrive default prefix:
        build date: Tue Apr 24 20:01:02 EDT 2001
        shared id: cygwin1S3

--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple