I'm interested to know if it's possible directly from Node to change the
directory of the current user of the shell, ex:
$ node cdnode.js /Users/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.
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 firstname.lastname@example.org
To unsubscribe from this group, send email to
For more options, visit this group at
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@example.com.
For more options, visit https://groups.google.com/groups/opt_out.