In ksh, I have two variables with the same name , one global , other one is local to a function
#!/bin/ksh
LOG_FILE=lf
function exec_script
{
local LOG_FILE=f
print $LOG_FILE
}
exec_script
print $LOG_FILE
If I want to refer the global variable $LOG_FILE within exec_script function, how should I qualify it so that the local does not get referenced ?
G_LOG_FILE=$LOG_FILE?