Announcement

Collapse
No announcement yet.

.bash_aliases: No such file or directory

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    .bash_aliases: No such file or directory

    PROBLEM:
    On opening a Terminal, this info appears first:
    /home/bumpy/.bash_aliases: line 1: /home/bumpy/.bash_aliases:: No such file or directory
    bash: /home/bumpy/.bash_aliases:: No such file or directory
    bumpy@bumpyputer:~$

    Am using kubuntu 13.04
    I've created the following file:
    Code:
    ~/.bash_aliases:
      DIGIKAMROOT="/root/home/bumpy"
      alias digikam-dev="KDESYCOCA='$DIGIKAMROOT/var/tmp/kde-neb/ksycoca4' KDE_FORK_SLAVES=1 LD_LIBRARY_PATH='$DIGIKAMROOT/lib64/' KDEDIRS='$DIGIKAMROOT' $DIGIKAMROOT/bin/digikam"
    #
    This is my first attempt creating such files - where did I go wrong?

    #2
    Remove the first line ("~/.bash_aliases:") from your .bash_aliases file.

    Additional notes:
    1. "/root/home/bumpy" looks like a weird path (but perhaps you have your reasons for that).
    2. The single quotes might prevent the expansion of your variables.
    Last edited by kubicle; May 02, 2013, 06:01 AM.

    Comment


      #3
      Thanks - No more Terminal message!
      Re: single quotes: would this be OK?
      alias digikam-dev="KDESYCOCA=$DIGIKAMROOT/var/tmp/kde-neb/ksycoca4" KDE_FORK_SLAVES=1 LD_LIBRARY_PATH="$DIGIKAMROOT/lib64" KDEDIRS="$DIGIKAMROOT" "$DIGIKAMROOT/bin/digikam"

      Comment


        #4
        Originally posted by Bumpalot View Post
        Thanks - No more Terminal message!
        Re: single quotes: would this be OK?
        alias digikam-dev="KDESYCOCA=$DIGIKAMROOT/var/tmp/kde-neb/ksycoca4" KDE_FORK_SLAVES=1 LD_LIBRARY_PATH="$DIGIKAMROOT/lib64" KDEDIRS="$DIGIKAMROOT" "$DIGIKAMROOT/bin/digikam"
        I'm guessing that won't work either (although you can test it by running 'alias' and check what the system outputs as the "digikam-dev" alias command.

        A couple of suggested ways to "fix":
        1. Use quotes only around the whole command, you shouldn't need to quote the inner variables
        2. You could also just simply use the full paths in the alias and remove the "$DIGIKAMROOT" variables from the aliased command.

        Comment


          #5
          Changed as follows:
          DIGIKAMROOT="/root/home/bumpy"
          alias digikam-dev="KDESYCOCA=DIGIKAMROOT/var/tmp/kde-neb/ksycoca4 KDE_FORK_SLAVES=1 LD_LIBRARY_PATH=$DIGIKAMROOT/lib64/ KDEDIRS=$DIGIKAMROOT $DIGIKAMROOT/bin/digikam"
          Is this OK?

          Comment


            #6
            Originally posted by Bumpalot View Post
            Changed as follows:
            DIGIKAMROOT="/root/home/bumpy"
            alias digikam-dev="KDESYCOCA=DIGIKAMROOT/var/tmp/kde-neb/ksycoca4 KDE_FORK_SLAVES=1 LD_LIBRARY_PATH=$DIGIKAMROOT/lib64/ KDEDIRS=$DIGIKAMROOT $DIGIKAMROOT/bin/digikam"
            Is this OK?
            You're missing one $ in "KDESYCOCA=$DIGIKAMROOT", but otherwise it looks ok (as far as alias syntax goes)

            Comment


              #7
              Thanks for your help!

              Comment

              Working...
              X