From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jan Nieuwenhuizen Subject: Re: bootstrapping SED-4.5, circular dependency? Date: Sun, 09 Dec 2018 04:59:04 +0100 Message-ID: <87o99vmjuf.fsf@gnu.org> References: <87efasp1vp.fsf@gnu.org> <9bb1aa64-224e-9b4c-6ed5-50433ed947bb@gmail.com> <875zw361ml.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:54358) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gVqFU-0006cC-SZ for guix-devel@gnu.org; Sat, 08 Dec 2018 22:59:21 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gVqFS-0004Zr-Vv for guix-devel@gnu.org; Sat, 08 Dec 2018 22:59:20 -0500 In-Reply-To: <875zw361ml.fsf@gnu.org> ("Ludovic \=\?utf-8\?Q\?Court\=C3\=A8s\=22'\?\= \=\?utf-8\?Q\?s\?\= message of "Sun, 09 Dec 2018 00:26:58 +0100") List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: Ludovic =?utf-8?Q?Court=C3=A8s?= Cc: guix-devel@gnu.org, Assaf Gordon , sed-devel@gnu.org Ludovic Court=C3=A8s writes: Hello, > Jan, could it be that the =E2=80=98basename=E2=80=99 and =E2=80=98dirname= =E2=80=99 implementations in > Gash fail this test? It might be that sed is not needed if you get > these right. Ah, yes! I have added some test to Gash and this basename -- / failed, producing the empty string, where coreutils' basename returns `/'. Gash "simply" (there is som if'ing involved) calls Guile's basename, which disagrees here and returns "" for "/". I'm assuming that this is expected behaviour for Guile?... so I special-cased this for Gash' basename. Greetings, janneke --=20 Jan Nieuwenhuizen | GNU LilyPond http://lilypond.org Freelance IT http://JoyofSource.com | Avatar=C2=AE http://AvatarAcademy.com