Re: command for relative path

2011-11-13 Thread Jim Meyering
Peng Yu wrote: >> would you care to submit a patch? > > I have finished relpath.c. When I push it (after commit), I get the > following error. I'm new to git. Does anybody know what the problem > is? And how to get my patch to the central git repository? > > ~/coreutils$ git push > fatal: The remot

Re: command for relative path

2011-11-13 Thread Bob Proulx
Peng Yu wrote: > > would you care to submit a patch? > > I have finished relpath.c. When I push it (after commit), I get the > following error. I'm new to git. Does anybody know what the problem > is? And how to get my patch to the central git repository? > > ~/coreutils$ git push > fatal: The re

Re: [PATCH] * tests/misc/sort-continue: Port to Fedora 15.

2011-11-13 Thread Paul Eggert
On 11/13/11 00:35, Jim Meyering wrote: > Oh! I thought you meant the test was actually failing. > I have confirmed that even with bash from F16 (and without > your patch), that diagnostic does appear in the log. Weird. For me, that diagnostic actually leads to a test failure; more detailed log e

Re: command for relative path

2011-11-13 Thread Peng Yu
> would you care to submit a patch? Hi, I have finished relpath.c. When I push it (after commit), I get the following error. I'm new to git. Does anybody know what the problem is? And how to get my patch to the central git repository? ~/coreutils$ git push fatal: The remote end hung up unexpecte

Re: command for relative path

2011-11-13 Thread Dmitry V. Levin
On Sun, Nov 13, 2011 at 07:47:39PM +, Bjartur Thorlacius wrote: > On 11/13/11, Dmitry V. Levin wrote: > > AFAIR the coreutils' realpath is called readlink. ;) > > > Except readlink currently doesn't work for symlinks, as it insists on > following them before canonicalizing pathnames. Unfortuna

Re: command for relative path

2011-11-13 Thread Dmitry V. Levin
On Sun, Nov 13, 2011 at 04:41:14PM -0600, Peng Yu wrote: > On Sun, Nov 13, 2011 at 12:45 PM, Dmitry V. Levin wrote: > > On Sat, Nov 12, 2011 at 11:45:56AM -0700, Eric Blake wrote: > > [...] > >> http://docs.python.org/library/os.path.html > >> >> os.path.relpath(path[, start]) > >> >> > >> >>     R

Re: command for relative path

2011-11-13 Thread Peng Yu
On Sun, Nov 13, 2011 at 12:45 PM, Dmitry V. Levin wrote: > Hi, > > On Sat, Nov 12, 2011 at 11:45:56AM -0700, Eric Blake wrote: > [...] >> http://docs.python.org/library/os.path.html >> >> os.path.relpath(path[, start]) >> >> >> >>     Return a relative filepath to path either from the current dire

Re: command for relative path

2011-11-13 Thread Bjartur Thorlacius
On 11/13/11, Dmitry V. Levin wrote: > AFAIR the coreutils' realpath is called readlink. ;) > Except readlink currently doesn't work for symlinks, as it insists on following them before canonicalizing pathnames. > Would "readlink --relative" or something like this be a good choice? > Or should it

Re: command for relative path

2011-11-13 Thread Dmitry V. Levin
Hi, On Sat, Nov 12, 2011 at 11:45:56AM -0700, Eric Blake wrote: [...] > http://docs.python.org/library/os.path.html > >> os.path.relpath(path[, start]) > >> > >> Return a relative filepath to path either from the current directory > >> or from an optional start point. > > Ah, so the idea is

Re: command for relative path

2011-11-13 Thread Bjartur Thorlacius
On 11/12/11, Peng Yu wrote: > On Sat, Nov 12, 2011 at 2:41 PM, Bjartur Thorlacius > wrote: > I don't see how realpath can do what I want. relpath.py gives me the > relative path of a from b. But realpath doesn't do so. > Sorry, my statement was completely false. Realpath -s is but a first step to

[PATCH] maint: id, groups: use conforming diagnostics

2011-11-13 Thread Jim Meyering
FYI, >From 5f47550b163e5c32132a221b0576d0dd697dc640 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Sun, 13 Nov 2011 10:46:40 +0100 Subject: [PATCH] maint: id, groups: use conforming diagnostics MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * src/gro

[PATCH] maint: avoid new syntax-check failure due to indentation with TABs

2011-11-13 Thread Jim Meyering
FYI, >From ac9581d80cfa5be8f738a95b0e74855eb54dd44e Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Sun, 13 Nov 2011 10:39:32 +0100 Subject: [PATCH] maint: avoid new syntax-check failure due to indentation with TABs * cfg.mk (tbi_2): Exempt pre-applypatch, since it too is from git. --- cfg.m

Re: [PATCH] * tests/misc/sort-continue: Port to Fedora 15.

2011-11-13 Thread Jim Meyering
Paul Eggert wrote: > On 11/12/11 01:34, Jim Meyering wrote: >> Maybe F15's bash has changed very recently? > > No, my /bin/bash is dated June 22. It says it's > > GNU bash, version 4.2.10(1)-release (x86_64-redhat-linux-gnu) > > So I'm surprised that you didn't observe the bug when you were > runn