From owner-freebsd-current Mon Apr 22 1:37:19 2002 Delivered-To: freebsd-current@freebsd.org Received: from hawk.mail.pas.earthlink.net (hawk.mail.pas.earthlink.net [207.217.120.22]) by hub.freebsd.org (Postfix) with ESMTP id 0C0C237B400; Mon, 22 Apr 2002 01:37:16 -0700 (PDT) Received: from pool0030.cvx21-bradley.dialup.earthlink.net ([209.179.192.30] helo=mindspring.com) by hawk.mail.pas.earthlink.net with esmtp (Exim 3.33 #2) id 16zZEv-0002Nj-00; Mon, 22 Apr 2002 01:32:01 -0700 Message-ID: <3CC3CA65.8ED064B0@mindspring.com> Date: Mon, 22 Apr 2002 01:31:33 -0700 From: Terry Lambert X-Mailer: Mozilla 4.7 [en]C-CCK-MCD {Sony} (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: John Hay Cc: Mike Barcroft , freebsd-current@FreeBSD.ORG, wollman@FreeeBSD.ORG Subject: Re: new expr(1) behaviour breaks libtool References: <200204211817.g3LIHTQ18310@zibbi.icomtek.csir.co.za> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG John Hay wrote: > > > I see the new new behaviour of expr(1) requires you to add '--' if your > > > commandline arguments might start with a '-'. This does break things > > > a little because our old expr(1) does not understand a '--' in the > > > beginning and the new one don't work right without it. :-((( > > > > I'm almost positive this issue was discussed before. Check the follow > > ups to the commit. > > The only one I could find was in -current, where Kris asked if w3m or > expr is to blame and Garrett said w3m is to blame. Garrett is right. The "expr" is being called with non-POSIX arguments by the w3c scripts. > Hmmmm. I can understand the requirement to eat '--', but to throw a > tantrum just because the commandline started with a '-' is a little > too much. BTW, was the response posted somewhere? I searched through > -standards, -commit and -current but couldn't find it. Maybe I just > didn't ask the right question to the search engine or maybe it was > in another list. The correct way to handle the "continuing brokenness" is to provide patches that will get applied to "libtool". Also, you complaint about different versionsion of FreeBSD being different is wrong: POSIX compliant scripts will call the command with POSIX compliant arguments, regardless of the FreeBSD version. Just because you can get away with it on older versions of FreeBSD doesn't mean that the patches shouldn't be applied there, too: they should, because it's important that the resulting scripts be standards compliant, even if the particular version of FreeBSD you are using has an implementation of "expr" that illegally extends the standard. -- Terry To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message