[Scottish] storing current directory

Mark McRitchie Mark.McRitchie at salamis.co.uk
Thu Jan 22 15:43:30 GMT 2004

> -----Original Message-----
> From: Elwell, AD (Andrew) [mailto:A.D.Elwell at dl.ac.uk] 
> >     export AMB_TMP=pwd
> welcome to backticks...

Or... You can use 

Using the $(<cmd>) structure in bash means you can easily nest commands
which backticks make difficult/impossible.


> 	#!/bin/sh
> 	AMB_TMP=`pwd`
> 	cd /some/New/Dir
> 	cd $AMB_TMP

Salamis Group of Companies -  WWW.SALAMISGROUP.COM

This communication contains information which is confidential and may 
also be privileged. It is for the exclusive use of the intended 
recipient(s). If you are not the intended recipient(s) be advised 
that any form of distribution, copying or use of this communication 
or the information it contains is strictly prohibited and may be 
unlawful. We apologise if you have received this communication in 
error. Please return it to the sender immediately, delete this 
communication from your computer and destroy any copies of it. Any 
views/opinions expressed in this email are that of the author and may 
not reflect the views of Salamis (M&I)Ltd. 

More information about the Scottish mailing list