In Linux shell do all commands that work in a shell script also work at the command prompt? -


i'm trying interactively test code before put script , wondering if there things behave differently in script?

when execute script has own environment variables inherited parent process (the shell executed command). exported variables visible child script.

more information:

by way, if want script run in same environment shell executed in, can point command:

. script.sh 

this avoid creating new process shell script.


Comments

Popular posts from this blog

apache - Add omitted ? to URLs -

redirect - bbPress Forum - rewrite to wwww.mysite prohibits login -

php - How can I stop spam on my custom forum/blog? -