Try
Code:
echo "DEBUG \$0: '$0'"
before the call to basename to see if $0 has the value you think it has.
There should be no space between $ and ( in $(<some command(s)>)
Thread profile page for "basename $0 returns basename: -k: unknown option" on http://www.linuxquestions.org.
This report page is a snippet summary view from a single thread "basename $0 returns basename: -k: unknown option", located on the Message Board at http://www.linuxquestions.org.
This thread profile page shows the thread statistics for: Total Authors, Total Thread Posts, and Thread Activity
| |||||||||||||||||||||||