Hello everybody,
I need to make sure that a bash script checks for a version of Bash
that is greater than 1.x. If the version is < 2.0 it needs to update
the version of bash and then continue using the updated version.
I can get the version using the $BASH_VERSION variable and use the
version to make the decision to do something. WHat I don't know how to
do is update the version and then use it in the same process as the
script.
I tried something like (and go ahead and flame me I'm new to Bash
programming):
/shell_source/new_bash
which starts a new process that does not carry on the program. trying
to use fg to bring it back to the foreground did not work either.
I'm sure this is probably fairly simple and I appreciate any
suggestions.
Thanks,
Casimiro