[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

basename -bash generates an error

From: Brian Matheson
Subject: basename -bash generates an error
Date: Wed, 18 Apr 2007 19:34:09 -0700

Hi there,

I occasionally use basename $0 in scripts that I sometime source in my
interactive shell.  This construct seems to be broken now.  

Old behavior:
red:~$ basename $0

New behavior:
orange:~/lib/sh$ basename $0
basename: invalid option -- b
Try `basename --help' for more information.

Looks like a misbehavior in option parsing.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]