> -----Original Message----- > From: Elwell, AD (Andrew) [mailto:[EMAIL PROTECTED] > > > export AMB_TMP=pwd > > welcome to backticks...
Or... You can use AMB_TMP=$(pwd) Using the $(<cmd>) structure in bash means you can easily nest commands which backticks make difficult/impossible. Regards, Mark. > #!/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. _______________________________________________ Scottish mailing list [EMAIL PROTECTED] http://mailman.lug.org.uk/mailman/listinfo/scottish
