On 1/19/2016 2:06 PM, Richard Heintze wrote:
Unfortunately, the following file name (for example) works with fsf emacs and 
not Cygwin emacs-w32:

$USERPROFILE/Documents/hello.txt

Even some bash commands accept this but emacs-w32 does not.

I use these environment variables extensively to facilitate moving between 
different windows logins.

Using environment variables isn't the problem. The problem is that $USERPROFILE is a native Win32 path. To use it in Cygwin emacs, convert it to a Posix path. For example:

$ echo $USERPROFILE
C:\Users\kbrown

$ cygpath -u $USERPROFILE
/c/Users/kbrown

Ken

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

Reply via email to