[Nottingham] Bash Variables

Mike Haber Mike.Haber at nottingham.ac.uk
Fri Aug 1 14:24:37 BST 2008


Hi All,
Just had a query from a colleague that I can't answer and is
interesting.

When using bash and exporting variables, is there a way of listing the
previous values that a variable contained?

For example if a script is run that contains 'export foo=bar' can the
previous values for $foo be accessed after the script has run?

Thanks
Mike 

This message has been checked for viruses but the contents of an attachment
may still contain software viruses, which could damage your computer system:
you are advised to perform your own checks. Email communications with the
University of Nottingham may be monitored as permitted by UK legislation.




More information about the Nottingham mailing list