See this program named test.sh:
#!/bin/sh
echo $USER
exit 0
At the Linux prompt, type . test.sh
It will logout out and ask my login in again.
What I am doing is:
I want to do something in a shell program like this:
PATH=/tmp/bin:$PATH
export PATH
It never worked. I think this only send the variable to his child shell.
But I want to send it to his sibling shell. So I type . test.sh
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.altern.org/andrebalsa/doc/lkml-faq.html