How are shell variables stored?

Đạt Michio

New member
How are shell variables stored?
Answer
Shell variables are stored in the memory of the running shell. Use any data structure that lets you easily look up an item given its name; a hash table is a good choice. The difference between shell variables and environment variables is that environment variables are placed in the environment of subprocesses.
 

Tìm kiếm

Back
Top