From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25989 invoked by alias); 19 Jan 2016 19:40:21 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 25962 invoked by uid 89); 19 Jan 2016 19:40:20 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=0.2 required=5.0 tests=AWL,BAYES_50,RP_MATCHES_RCVD,SPF_HELO_PASS,SPF_PASS autolearn=ham version=3.3.2 spammy=kbrown, Heintze, heintze, $path X-HELO: limerock01.mail.cornell.edu Received: from limerock01.mail.cornell.edu (HELO limerock01.mail.cornell.edu) (128.84.13.241) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 19 Jan 2016 19:40:19 +0000 X-CornellRouted: This message has been Routed already. Received: from authusersmtp.mail.cornell.edu (granite4.serverfarm.cornell.edu [10.16.197.9]) by limerock01.mail.cornell.edu (8.14.4/8.14.4_cu) with ESMTP id u0JJeHM0001779; Tue, 19 Jan 2016 14:40:17 -0500 Received: from [10.13.22.4] (50-192-26-105-static.hfc.comcastbusiness.net [50.192.26.105]) (authenticated bits=0) by authusersmtp.mail.cornell.edu (8.14.4/8.12.10) with ESMTP id u0JJeGlH016131 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT); Tue, 19 Jan 2016 14:40:17 -0500 Subject: Re: Any progress on "Fork issues ith long command lines and long $PATH"? To: Richard Heintze , "cygwin@cygwin.com" References: <569AA38E.7040205@cornell.edu> <54233810.5967218.1453230386996.JavaMail.yahoo@mail.yahoo.com> From: Ken Brown Message-ID: <569E9123.4070506@cornell.edu> Date: Tue, 19 Jan 2016 22:40:00 -0000 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.5.1 MIME-Version: 1.0 In-Reply-To: <54233810.5967218.1453230386996.JavaMail.yahoo@mail.yahoo.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2016-01/txt/msg00227.txt.bz2 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