How to type curly quote in Terminal as root?

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

  1. esskay macrumors 6502

    Jan 3, 2008
    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:,...ine-sparsebundle-nas-based-backup-errors.html
  2. chrfr macrumors 604

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

    Jan 3, 2008

Share This Page