[Nottingham] Bash Variables

Mike Haber Mike.Haber at nottingham.ac.uk
Mon Aug 4 10:22:40 BST 2008


Hi Martin,
 
> What is it that you're trying to do?
It was really after the event. A script was run that modified a
variable, and we wondered if bash kept the previous values tucked away
someplace safe. 
With the massive amount of features bash has, I thought that it just
*might* do that.

> 
> Can you not just simply pass the previous values as parameters?
> Or pipe them in?
> Or even write them to a real file to then be read in?
> 
> In desperation, you could use an array...

I think he'll save them somewhere safe.

Thanks
Mike



> Cheers,
> Martin
> 
> --
> ----------------
> Martin Lomas
> martin at ml1.co.uk
> ----------------
> 
> _______________________________________________
> Nottingham mailing list
> Nottingham at mailman.lug.org.uk
> https://mailman.lug.org.uk/mailman/listinfo/nottingham
> 

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