Not a bug. Reporter has clarified in original Question that $0 at the command line was passing -bash to readlink(1).
Not a bug. Reporter has clarified in original Question that $0 at the command line was passing -bash to readlink(1).