On 2010-05-06 08:02:04 -0600, Eric Blake wrote: > On 05/06/2010 07:23 AM, Vincent Lefevre wrote: > > According to > > > > grep 'basename --' /usr/bin/* > > grep 'basename \$' /usr/bin/* > > > > on my Debian machine, almost all scripts use basename without "--". > > The only exceptions are autoconf (but I'm not sure this counts, as > > there's a test for "basename --" first, > > Can you find an actual example of this? I think you read it > incorrectly, as really, autoconf first tests for 'basename -- /', but if > you indeed found an instance of autoconf testing for 'basename --', that > would be a bug in autoconf that needs to be reported to that list.
Sorry, I meant it was testing basename with "--" as the first argument while in this case it is useless. So, I wondered whether the goal of this test was to test whether this form was supported. > >> Note solaris behaves like busybox and openbsd behaves like coreutils. > > > > Perhaps they're copying coreutils without looking at what POSIX says. > > Or, more likely, perhaps they are independently obeying what POSIX says, > without reference to either coreutils or busybox. So, I think I should reassign the bug to busybox? -- Vincent Lefèvre <vinc...@vinc17.net> - Web: <http://www.vinc17.net/> 100% accessible validated (X)HTML - Blog: <http://www.vinc17.net/blog/> Work: CR INRIA - computer arithmetic / Arénaire project (LIP, ENS-Lyon) -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org