How to type curly quote in Terminal as root?

Discussion in 'Mac OS X Lion (10.7)' started by esskay, Jan 19, 2013.

  1. macrumors 6502

    Joined:
    Jan 3, 2008
    #1
    I have a Time Machine sparsebundle with a curly quote in the filename

    e.g. /Volumes/timemachine/esskay’s MacBook Pro.sparsebundle

    I am trying to work on the file from Terminal. While logged in normally, I can type in the curly quote and access files with curly quotes (by double quoting the entire file path)

    But when I log in as root (e.g. # sudo su - ), I can no longer enter the curly quote that is part of the filepath so am unable to access the file.

    Can anybody please help me?! Thanks!

    Incidentally, this is what I am trying to do:

    http://www.garth.org/archives/2011,...ine-sparsebundle-nas-based-backup-errors.html
     
  2. macrumors 68040

    Joined:
    Jul 11, 2009
    #2
    That's happening because you're changing from the default shell of bash to sh. Type
    Code:
    sudo -s
    instead of
    Code:
    sudo su -
    to stay in bash, and then everything will work as it normally does.
     
  3. thread starter macrumors 6502

    Joined:
    Jan 3, 2008
    #3
    Awesome! Thanks so much!! :)
     

Share This Page