How to make userdefined variables to available for all
other shells?

Answers were Sorted based on User's Feedback



How to make userdefined variables to available for all other shells?..

Answer / guest

By exporting the variable

export VAR=value_of_the_variable

Is This Answer Correct ?    2 Yes 0 No

How to make userdefined variables to available for all other shells?..

Answer / biswaranjan

sorry the above ans ps1 is wrong by mistaken i sent it

Is This Answer Correct ?    1 Yes 0 No

How to make userdefined variables to available for all other shells?..

Answer / asit

for Global declaration::
setenv x 10
setenv str "test"
for local declaration::
set a = 10
set s = "test"

Is This Answer Correct ?    0 Yes 0 No

How to make userdefined variables to available for all other shells?..

Answer / biswaranjan

in "PS1" environment variable

Is This Answer Correct ?    0 Yes 2 No

Post New Answer

More Shell Script Interview Questions

Write a shell script to looking at the log file to see if the test has passed or not

2 Answers   TCS,


Which scripting language is best for automation?

0 Answers  


How will you emulate wc –l using awk?

0 Answers  


What is the use of echo in shell script?

0 Answers  


What makes c shell a more preferable option than the bourne shell?

0 Answers  


What does $@ mean bash?

0 Answers  


What is scripting used for?

0 Answers  


What is the best scripting language?

0 Answers  


In shell scripting if text is surrounded by single quotes what does it denotes?

3 Answers  


What does echo mean in scripting?

0 Answers  


I want to monitor a continuously updating log file, what command can be used to most efficiently achieve this?

0 Answers  


What is the way to do multilevel if-else's in shell scripting?

0 Answers  


Categories