Dirname and basename did not work after linux patch

Friends,
We have a shell script  works well before linux (Linux 2.6.32-400.33.2.el5uek x86_64)  patch  last month.
Based on debug issue in
export PLOC=`dirname $0`
export PDIR=`basename $0`
The testing message as
export PLOC=`dirname $0`
dirname: invalid option -- b
Try `dirname --help' for more information.
How to fix this issue?
Thanks
newdba

The message "invalid option -- 'b'" results from $0 being "-bash". This can be the case if you are source executing the script. This would be a normal behavior.
For instance:
echo "basename \$0" > t1
chmod u+x t1
./t1
t1
. t1
basename: invalid option -- 'b'
Try `basename --help' for more information.

Similar Messages

  • TS1814 I have windows vista and this did not work for my ipod it still will not update PLEASE HELP!

    I have windows vista and this did not work for my ipod it still will not update PLEASE HELP!
    iTunes for Windows: iTunes cannot contact the iPhone, iPad, or iPod software update server

    Try this:
    Close your iTunes,
    Go to command Prompt -
    (Win 7/Vista) - START/ALL PROGRAMS/ACCESSORIES, right mouse click "Command Prompt", choose "Run as Administrator".
    (Win XP SP2 n above) - START/ALL PROGRAMS/ACCESSORIES/Command Prompt
    In the "Command Prompt" screen, type in
    netsh winsock reset
    Hit "ENTER" key
    Restart your computer.
    If you do get a prompt after restart windows to remap LSP, just click NO.
    Now launch your iTunes and see if it is working now.
    If you are still having these type of problems after trying the winsock reset, refer to this article to identify which software in your system is inserting LSP:
    iTunes 10.5 for Windows: May see performance issues and blank iTunes Store
    http://support.apple.com/kb/TS4123?viewlocale=en_US

  • An app continues to say "installing" when nothing is happening.  It has been several hours now.  It's only a book so should not take this long.  I have tried deleting it and that did not work.

    An app continues to say "installing" when nothing is happening.  It has been several hours now.  It's only a book so should not take this long.  I have tried deleting it and that did not work.

    Try:                                               
    - iOS: Not responding or does not turn on           
    - Also try DFU mode after try recovery mode
    How to put iPod touch / iPhone into DFU mode « Karthik's scribblings
    - If not successful and you can't fully turn the iOS device fully off, let the battery fully drain. After charging for an least an hour try the above again.
    - Try another cable       
    - Try on another computer                                                       
    - If still not successful that usually indicates a hardware problem and an appointment at the Genius Bar of an Apple store is in order.
      Apple Retail Store - Genius Bar                              

  • I am on windows 7 and I upgraded to 10.0.2 and now it will not open. I have removed firefox completely and uploaded it again and that did not work. So my latest attempt I removed firefox 10 again and uploaded the beta version and once again nothing.

    I am on windows 7 and I upgraded to the newest verison of firefox and now it will not open. I have removed firefox completely and uploaded it again and that did not work. I then made sure it could get through my firewall and that did not work. So my latest attempt I removed firefox 10 again and uploaded the beta version hoping that would do it and once again nothing. It will not open at all. Please help - is there a live chat or a number to talk to someone at Firefox?

    I think when uninstalling you may also have to choose (tick) to delete the preferences and other personal data like the bookmarks, stored passwords etc. to erase completely. If you are installing afresh, please try right-clicking on the file and '''Run as administrator''' to install. And when uninstalling, please also make sure choose to delete all data and also manually delete any '''Mozilla''', '''Mozilla Firefox''' or '''Firefox''' from %appdata%, %localappdata% and %programfiles%. You can open a location by typing for eg. %appdata% in the '''Run''' box (Windows key + R). You may also have to check the '''VirtualStore''' folder in %localappdata%. Files in the VirtualStore can be problematic. I think a clean installation may help.
    [https://www.mozilla.org/en-US/firefox/new/ Firefox]
    [http://kb.mozillazine.org/Installation_directory Installation Folder]
    [http://kb.mozillazine.org/Profile_folder Profile Folder]
    Please note that using system restore would usually damage the Firefox installation.

  • HT1212 I just updated my Ipad 2 to IOS7, now it is asking me for a passcode. I never set a passcode on my Ipad, so how can I enter a passcode. I tried using the OIS7 passcode I use on my Iphone  and it did not work and now my Ipad is disabled

    I just updated my Ipad 2 to IOS 7, now it is asking me for a passcode. I never set a passcode on my Ipad, so how can I enter a passcode. Earlier today I upgraded my Iphone 5 to IOS 7 and it asked me to set a passcode, which now works fine on my Phone. I  tried using the OIS7 passcode I use on my Iphone 5 and it did not work and now my Ipad is disabled. Both devices are on icloud and share the same apple id. The Ipad screen says slide to set up but then there is a prompt for passcode, not for setting up passcode

    I called Apple Support and a supervisor helped resolve this for me on my iPad. I suggest calling them for help as this is obviously an issue with the iOS 7 update - she helped me without charge. I could be missing something in my upcoming description, so do not take this as complete - call them.
    I had to update iTunes on my Mac Air to the latest version, and I had an iCloud backup from the day I updated to iOS7. Have iTunes open but do NOT connect your iPad yet. Shut down the iPad. Then press/hold the Home key on the iPad while you connect the USB from the iPad to the computer (an image of the USB cable appeared on the iPad). Follow the prompts in iTunes to restore and then backup using iCloud. When the iPad rebooted again to do the backup install, I got the same pass code issue and iTunes would not recognize the iPad without entering a pass code. I disconnected the iPad, turned it off, pressed the Home key while connecting the USB cable. When I did the restore and backup from iCloud the second time, it worked without the pass code issue occurring.

  • My iMessage and facetime is not working after updating to ios 7... My ipad works perfectly and it's the same apple id.  Any answers or reasons why on the iPhone 5 is not working???

    My iMessage and facetime is not working after updating to ios 7...
    Any answers on how to fix it?  I've tried to restart, restore connected to itunes, but nothing.

    ACTIVATING FACETIME AND IMESSAGES
    Activating Facetime and Imessages on your phone requires the ability to send SMS messages and depending upon where you are that might be an international SMS.  Check with your carrier to see if your plan supports sending of international SMS messages.  If you are having trouble activating Facetime or Imessages turn them both off on your device and reset the device (Hold down the Sleep/Wake button and the home button together until the apple logo appears (ignore the ON/OFF slider) then let both buttons go and wait for device to restart (no data will be lost)).  Wait for the device to restart and wait a minute and turn Facetime and imessage back on and wait for activation.  If that does not fix things read the following articles:
    http://support.apple.com/kb/TS4268
    http://support.apple.com/kb/ts3367

  • HT5622 valid apple id but not icloud account.  I tried downloading on a different computer and logging in and it did not work.  I have restarted my computer several times.  I have changed my password several times.  I have tried to access the icloud page.

    repeating error message reads: "valid apple id but not icloud account." when trying to start my icloud account.  I tried downloading on a different computer and logging in and it did not work.  I have restarted my computer several times.  I have changed my password several times.  I have tried to access the icloud page.  Nothing has worked.  Now I have this stupid app and some of my music is still not being shared on both of my computers.

    I have the same problem signing in...but, I finally got a screen saying you have to set up a account on a device..like an ipad to get a iCloud sign in ...my apple id is [email protected]   and this screen reset to [email protected]
    If you don't have an apple device you may be out of luck.  I don't know.  I'm still waiting for help just as you are...good luck to both of us though.

  • HT201343 I tried setting sound to apple tv before mirroring and it did not work. Any other suggestions?

    I tried the solution of selecting sound in System Preferences before turning on mirroring and it did not work. Any other settings I need to worry about?

    You can only update an app from the AppleID that was used to purchase it.

  • HT2731 I was ask for my secure question and they did not work. So I went into my account and tap on my secure question that I forgot my secure question. It replied back that it just sent me a email. The email never came. I did this three time. My email is

    I was ask for my secure question and they did not work. So I went into my account and tap on my secure question that I forgot my secure question. It replied back that it just sent me a email. The email never came. I did this three time. You have myy email as correct. I have check my account and it show as being correct.

    It's a really bad idea to post your email addresess - it's an invitation to spam - and I've asked the Hosts to remove them.
    This is a user-to-user forum and no-one on here can take any direct action. If your Yahoo address is not working that's something you would need to take up with Yahoo - have you checked it by sending yourself an email to it?
    Otherwise you will need to contact Support: go to https://expresslane.apple.com/ and click on 'iTunes' in the center column and then 'iTunes Store' in the right-hand column and proceed from there.

  • TS1398 my wifi connection on our mini ipad is grayed out and cannot connect to wifi, I have tried resetting and that did not work.

    Our wifi  is grayed out on our mini ipad; I have tried resetting network settings and that did not work. Any other suggestions?

    Wi-Fi or Bluetooth settings grayed out or dim
    http://support.apple.com/kb/TS1559
     Cheers, Tom

  • I have an Iphone 4 and my internet has not worked for a good 10 months, why wont it work? my dad pays for my data plan, so its not that i dont pay my bill. I've even tried to reset my net work settings, and that did not work

    i have an iphone 4 and my internet has not worked for a good 10 months, why wont it work? My dad pays for my data plan, so its not that i dont pay the bill. I've even tried to rest my net work settings, and that did not work. I went to AT&T and they said that the only way to fix it was to buy a new phone, and im not going to buy a new phone with out my upgrade. someone, please help!

    Hey lilmissindian!
    I have an article for you here that will help you troubleshoot this issue:
    iPhone: Troubleshooting a cellular data connection
    http://support.apple.com/kb/ts3780
    Thanks for coming to the Apple Support Communities!
    Cheers,
    Braden

  • HT1414 My WiFi want work - tried turning off and restarting and did not work. Tried resetting All Settings and that did not work. Followed Apple Restoring iOS Software and that does not get it working. Help any ideas !!!

    Anyone help,
    My WiFi stays off, have tried turning off: did not work. tried Restoring settings and that did not work. Downloaded iSO 6.1.3 and it still want work. Any ideas!!

    same my iphone also did not work i tried to restore but its not coonected to the internet.pls i need your help too.

  • TS1538 Followed troubleshooting for iPhone not found in devices iTunes and that did not work...  Now what?

    Followed troubleshooting for "iPhone not found in devices" iTunes and that did not work...  Now what?

    That's what I tried. The 6 steps and I do not have security software on my phone. iTunes on my Mac is still giving me the warning that I need to download the latest version on my phone, and is not recognizing it in devices, which is the irony because that's what I need to actually update it

  • The date and time is not working after setting it to current date and goes back to may,26 2011

    the date and time is not working after setting it to current date and goes back to may,26 2011; 2 PM . I bought my ipod tocuh 4th gen on july 18th

    On the iPod, make sure your Calendar is set to Gregorian (Settings > General > International > Calendar).  Also make sure your date and time on your computer is correct as well as the Time Zones on both.

  • I had photoshop elements 8 installed on my previous computer and it did not work properly when it came to sizing  photos for a website I was adding to.  I now have a new computer which runs windows 7.  Is it worth installing it again on my new computer?

    I had photoshop elements 8 installed on my previous computer and it did not work properly when it came to sizing  photos for a website I was adding to.  I now have a new computer which runs windows 7.  Is it worth installing photoshop elements 8 again on my new computer or will it be a waste of time?

    I have PSEv.8 on my computer running WINDOWS 7. It works perfectly..
    Perhaps you need help with saving files for web use.. Will be pleased to assist you when you get everything set up.

Maybe you are looking for

  • I don't understand.........

    I recently got a new computer with Windows 8.1 installed. It came with Skype (says 2.8.0.1001) and it's completely wacko. I installed the regular Skype (6.16.60.105), which is much better. But when I open the other Skype (2....), I have two messages

  • Need mifi pocket hotspot for iPad mini.

    I am in need of a mifi pocket hotspot to use with a iPad wifi mini, there is so many to chose from. Anyone knows which one might work best, has any experience using one with thete iPad.

  • Office apps as pivot charts??

    Hey Did any one try using an office app for example  gauge or chart for excel with powe pivot model and then publish it to sharepoint gallary?? Should we wate for the new html5 version of power view for this matter? I am using the latest 2013 softwar

  • Help No Help

    From Logic 9 I can't access Logic Pro Help, instead I get a Help Viewer page with the text "The Help Library requires JavaScript. If Javascript is not enabled, you will not be able to view all the content." Not know anything about JavaScript, I thoug

  • Photo Album Does Not Contain Photo List After Transfer

    I just recently re-installed Windows XP Pro on my Dell Latitude notebook.  After installing Photoshop/Premiere Elements 8 and importing my photos and albums from Photoshop Elements 5.0 that my tags were still in place but not the "Album" information.