I have a lots of codes that do this.
old_status=${}
# Do something
status $old_status
But, is this the correct way to do it?
I have a lots of codes that do this.
old_status=${}
# Do something
status $old_status
But, is this the correct way to do it?
Yes, I think this is the most simple/elegant way to do it.