On 2010-05-06 08:16:50 -0400, Michael Stone wrote:
> On Thu, May 06, 2010 at 01:31:45PM +0200, you wrote:
> >A practical example of a failure could be when one uses
> >
> > dirname "$0"
> >
> >in a rc file and the shell happens to be a login shell.
> 
> I'm not convinced of this interpretation, and suspect that dirname
> -- "$@" would be more portable.

This doesn't work with BusyBox, where dirname fails if there isn't
*exactly* one argument. So, this can only be: dirname "$0"

-- 
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

Reply via email to