Skip to content

feat(cd): cd() (no args) changes to home directory - #306

Merged
ariporad merged 1 commit into
shelljs:masterfrom
nfischer:cd-no-args
Jan 24, 2016
Merged

ariporad merged 1 commit into
shelljs:masterfrom
nfischer:cd-no-args

Conversation

@nfischer

Copy link
Copy Markdown
Member

cd() used to be a error. Now it changes to the home directory instead. This is to match unix behavior:

$ pwd # prints whatever the cwd is
$ cd
$ pwd # prints the home directory path

@ariporad

Copy link
Copy Markdown
Contributor

LGTM!

ariporad added a commit that referenced this pull request Jan 24, 2016
feat(cd): cd() (no args) changes to home directory
@ariporad
ariporad merged commit 361eb93 into shelljs:master Jan 24, 2016
@ariporad ariporad added this to the v0.6.0 milestone Jan 24, 2016
@nfischer
nfischer deleted the cd-no-args branch January 24, 2016 22:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants