[Techtalk] problem with changing directory in a script

Little Girl littlergirl at gmail.com
Mon Sep 14 14:57:42 UTC 2015


Hey there,

Miriam English wrote:

> It looks like there isn't any way to use the tilde, then... unless
> I write my own expansion routine... which is too much hassle as
> this is just a crappy program for my own use. I was just wanting to
> make it more general-purpose in case it might be useful for other
> people.

I'm not sure if these would be of any use, but both of them take me
to the Desktop in Linux Mint MATE:

test=~/Desktop;cd $test;

test="$HOME/Desktop";cd $test;

Quotes are often the bane of my existence. (:

-- 
Little Girl

There is no spoon.



More information about the Techtalk mailing list