Hi, how can I associate to a var a path with both env variable and text? something like this for example: let trial=$HOME/dir1/dir2/$env1/dir3 I saw that let trial=$HOME works when I echo it, but if I add $HOME/dir1 it doesn’t anymore…any help? Thanks

  • chimay
    link
    11 year ago

    you can use a dot to concatenate strings :

    let trial = $HOME . '/dir1/dir2/dir3'
    
    • @dafunkkkOP
      link
      11 year ago

      it works!!!..many thanks!!!