Notice that the GNU version of basename takes an optional parameter. This handy for specifying a filename... iven more) and basename takes one argument and an optional one which is not a filename.
Despite their sim... ike literally. Under bash this is a user-settable option. In fact, under bash you can disable shell "globbing" if you like -- there's a simple option to do this. It's almost never used -- because com