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 is the need of including script interpreter in your shell script?

2 Answers  


How to customise the existing shell?

1 Answers  


How do I debug a shell script?

0 Answers  


How to check if a directory exists?

0 Answers  


What is echo in shell?

0 Answers  






What can you do with powershell?

0 Answers  


How do I open the shell in cmd?

0 Answers  


What is a command line shell?

0 Answers  


I want to create a directory such that anyone in the group can create a file and access any person's file in it but none should be able to delete a file other than the one created by himself.

0 Answers  


What is in a script?

0 Answers  


What is a shell script? Can you name some of its advantages?

0 Answers  


What is the significance of $#?

0 Answers  


Categories