Results 1 to 1 of 1

Thread: Trouble with cd and variables?

Hybrid View

  1. #1
    Join Date
    Jan 2009
    Location
    USA! goin downhill tho :(
    Beans
    403
    Distro
    Ubuntu 10.04 Lucid Lynx

    Trouble with cd and variables?

    PHP Code:
    mobile:~$ cd /media/TOSHIBAEXT/ToshibaSupport/recup_dir.2 
    cd into the directory to make sure it exists. Success.

    PHP Code:
    mobile:/media/TOSHIBA EXT/Toshiba Support/recup_dir.2blah=/media/TOSHIBAEXT/ToshibaSupport/recup_dir
    It indeed exists. So, I set the path to equal the variable. I didnt use the number as this is suppose to be going into a script. Success.

    PHP Code:
    mobile:/media/TOSHIBA EXT/Toshiba Support/recup_dir.2cd $blah2
    bash
    cd: /media/TOSHIBANo such file or directory 
    Use the variable, and manually add the number. Fails.

    For some reason, it keeps cutting off at the backslash I used to escape the space. Is there a solution?
    Last edited by NFblaze; April 11th, 2010 at 06:57 PM.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •