Hello Team,
Could you pls explain how export command works in below code:
As per my understanding, if
then in for loop below export will get executed.
But, Will this actually work like normal export command below?
Could you explain and correct me if wrong.
also i tried below and did not get the values in the new sessions.
On Same session:
On new session:
Regards,
Chandana
Could you pls explain how export command works in below code:
Code:
for i in ${!SDV_*}; do
export $i
done
Code:
SDV_1=test1;SDV_2=test2;test1=var1;test2=var2
Code:
export var1;export var2
Code:
export SDV_1=test1;
export test1=var1
also i tried below and did not get the values in the new sessions.
On Same session:
Code:
$ var1=test1;
$ export var1;
$ echo $var1
test1
$ export var2;
$ var2=test2;
$ echo $var2
test2
$
Code:
$ echo $var1
$ echo $var2
$
Chandana