Hi,
I'm interested to know if it's possible directly from Node to change the 
directory of the current user of the shell, ex:

$ pwd
/Users/marco
$ node cdnode.js /Users/test
$ pwd
/User/test

Currently a nodejs script run in a child process of the shell, all command 
issued to the process, like chdir, are reflected only on the subprocess of 
node, and not on the main shell process. Thus exiting from the nodejs 
script means to return to the previous shell status.

I know that it's possible using the source or dot operator to do this, but 
I was interested to know if there are other possibilities to do this 
directly inside the nodejs script.

Thanks

Marco

-- 
-- 
Job Board: http://jobs.nodejs.org/
Posting guidelines: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en

--- 
You received this message because you are subscribed to the Google Groups 
"nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to