Path: csiph.com!weretis.net!feeder6.news.weretis.net!nntp.club.cc.cmu.edu!micro-heart-of-gold.mit.edu!bloom-beacon.mit.edu!bloom-beacon.mit.edu!171.64.64.130.MISMATCH!usenet.stanford.edu!not-for-mail From: Bob Proulx Newsgroups: gnu.utils.help Subject: Re: git/make for windows expansion of relative paths Date: Tue, 19 Sep 2017 12:32:46 -0600 Lines: 36 Approved: help-gnu-utils@gnu.org Message-ID: References: NNTP-Posting-Host: lists.gnu.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: usenet.stanford.edu 1505845974 21102 208.118.235.17 (19 Sep 2017 18:32:54 GMT) X-Complaints-To: action@cs.stanford.edu Cc: help-gnu-utils@gnu.org To: Michael Powell Envelope-to: help-gnu-utils@gnu.org Mail-Followup-To: Michael Powell , help-gnu-utils@gnu.org Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20170609 (1.8.3) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 96.88.95.61 X-BeenThere: help-gnu-utils@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU utilities List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Xref: csiph.com gnu.utils.help:311 Michael Powell wrote: > Subject: Re: git/make for windows expansion of relative paths > As the subject states, that's my general question: how can it be > done? I have a relative path which I need to pass along to a utility > program in terms of its absolute path. I am not a Microsoft Windows user so have not tested but have you tried using: readlink -f ../../relative/path 'readlink -f' will turn the relative path into an absolute path. It will turn it into the canonical path. Being canonical there will be no symlinks to it. If you don't have readlink then perhaps the Cygwin or MinGW tools for MS-Windows would be workable? > Thus far, attempts to do so using realpath, abspath, and a plethora > of variants have been foiled and do not seem to work properly. Give 'readlinke -f' a try. > I bumped into one forum post or another that seemed to indicate that > make 3.81 (?) may be broken for Windows along these lines, but I > cannot say for certain. > > As far a I know, I am using GNU make v3.80 as exposed by Git for > Windows v2.12.0. If your question is specifically about 'make' then the better mailing list is the help-make AT gnu.org mailing list where the make developers and other make experts and users hang out. Bob