This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Any progress on "Fork issues ith long command lines and long $PATH"?


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]