Skip to Main Content

Infrastructure Software

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

export `dirname $0` does not return value

592815Jan 31 2014 — edited Feb 2 2014

Friends,

I have a sheel script  that works well.

Recent days, it does not work. Per debug, export PLOC=`dirname $0` does not return a value.

I run script as bush shell in  Oracle Linux Server release 5.10 Red Hat Enterprise Linux Server release 5.10 (Tikanga)

I try to PLOC=`dirname -- $0` or PLOC=`dirname BASH_ARGV[0]` or PLOC=`dirname {BASH_ARGV[0]}` But all of changes does not work.

How do we get a value from dirname?

Thanks so much

newdba

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 2 2014
Added on Jan 31 2014
3 comments
2,935 views