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

What are the zombie processes?

0 Answers  


In a file , how to retrieve the lines which are the multiples of 50 ? like 50,100,150th lines etc.

9 Answers   Amazon,


how to find weblogic version through linux cammand

1 Answers   L&T,


c program to implement unix/linux command to block the signal ctrl-c and ctrl-\ signal during the execution ls -l|wc -l

0 Answers  


How do I run a .sh file?

0 Answers  






What is the difference between grep and egrep?

0 Answers  


What is the command to find out users on the system?

0 Answers  


How to pass an argument to a script?

0 Answers  


How to change our default shell?

5 Answers  


What does echo $0 do?

0 Answers  


What is path in shell script?

0 Answers  


how is the oppurtunities for unix in the software

1 Answers  


Categories