Nate Fischer
d8466a14dd
Merge pull request #324 from shelljs/ls-l-option
...
feat(ls): add -l option
2016-01-31 11:18:09 -08:00
Nate Fischer
e918c758a2
feat(ls): add -l option
...
The `-l` option will now cause `ls()` to return an object containing file stats.
These objects will also have a toString() method that formats it into something
analogous to `ls -l`'s output format.
2016-01-31 11:08:03 -08:00
Ari Porad
a96467a6f5
Merge pull request #290 from isiahmeadows/pathext
...
feat(Windows): search PATHEXT instead of 3 hardcoded values
2016-01-31 09:01:16 -08:00
Burak Yigit Kaya
fb5a7ece66
Fix symlinking on Windows
...
Fixes symlink creation on Windows systems and adds a test
for symlinking directories since it needs special treatment
on Windows.
Fixes #301 .
2016-01-31 13:15:22 +02:00
Isiah Meadows
eaa771033e
Search PATHEXT for which, do a lowercase comparison on Windows
...
Redo of #134
`which` now searches through PATHEXT on Windows, and it also now does a
case-insensitive comparison. This better fits the Windows environment, where
the OS usually ignores case.
2016-01-29 13:34:20 -05:00
Nate Fischer
bccf620787
feat(sed): support multiple file names
...
fixes #231 . Semantics are like unix sed.
2016-01-27 19:08:33 -08:00
Burak Yigit Kaya
175f5e1efd
Fix tests on Windows
2016-01-27 22:53:31 +02:00
Ari Porad
90a98a51e8
Merge pull request #311 from nfischer/ls-d-option
...
feat(ls): add -d flag to ls()
2016-01-26 18:51:12 -08:00
Nate Fischer
c6da9e76fd
feat(ls): add -d flag to ls()
2016-01-25 23:44:20 -08:00
Brandon Freitag
39ab73ff61
Check that source exists for hard links
2016-01-25 01:48:06 -08:00
Brandon Freitag
fd27d85317
Use OS-agnostic filepath verification
2016-01-24 22:35:45 -08:00
Brandon Freitag
bceb066c5c
Fix relative symlinks, add tests
...
When creating a symlink with a relative path, e.g. `ln('-s', '../baz.txt', 'foo/bar/link')`,
the link will be created releative to the destination directory, not to the
current working directory of the node process. Also added tests for
functionality.
2016-01-24 22:35:45 -08:00
Timothy Gu
18df9540ab
Make to and toEnd chainable
2016-01-24 15:03:20 -08:00
Ari Porad
154d6a626a
Merge pull request #303 from nfischer/more-regex-tests
...
fix: regexes are more consistent with sed and grep
2016-01-24 14:16:17 -08:00
Nate Fischer
dfaa78abef
feat(cd): cd() (no args) changes to home directory
2016-01-24 13:19:57 -08:00
Ari Porad
c4220691b7
Merge pull request #293 from nfischer/feat-home-directory-tilde
...
feat: add tilde expansion to expand()
2016-01-24 11:50:40 -08:00
Nate Fischer
b3f266469b
feat: add tilde expansion to expand()
...
This adds tilde expansion to the expand() function. Arguments starting with '~/'
will have the tilde expanded to the user's home directory, as with Bash.
2016-01-23 21:52:20 -08:00
Nate Fischer
1979d07776
Adding previousDir field to common.state to allow cd('-') to work like Bash
2016-01-23 21:24:13 -08:00
Nate Fischer
1ee696d824
fix: regexes are more consistent with sed and grep
...
sed will now convert search strings to regex form, so `'a*'` will now work like
`/a*/`. Also, new tests for grep and sed ensure that '*' is not expanded for
filename globbing.
2016-01-23 21:16:43 -08:00
Nate Fischer
5ea67cf06d
Fix ls docs
2016-01-23 17:32:26 -08:00
Ari Porad
015d34f78a
Merge pull request #295 from nfischer/fix-run-tests
...
fix: jshint works on Windows
2016-01-21 14:01:31 -07:00
Nate Fischer
07236a6463
fix inconsistencies in docs
2016-01-20 19:42:35 -08:00
Nate Fischer
9ff07b3ca7
Style updates in docs
2016-01-20 03:11:56 -08:00
Nate Fischer
900384bda8
Now runs jshint on the src/ folder. This fixes the pre-existing lint issues
2016-01-19 00:25:21 -08:00
Nate Fischer
15261f846c
Merge pull request #292 from nfischer/fix-readme-style
...
style: make docs more consistent
2016-01-15 19:50:01 -08:00
Nate Fischer
efc0bbb4ec
style: make docs more consistent
...
I also fixed a URL in the top section of the README.
2016-01-15 19:37:59 -08:00
Ari Porad
2c63ecf461
Merge pull request #271 from freitagbr/fix-cp-behavior
...
Fix cp to match unix behavior
2016-01-15 16:26:31 -08:00
Ari Porad
9e9b500106
Don't do console.log.apply(this, ...).
...
Fixes #255
2016-01-14 20:59:40 -08:00
Martino Visintin
d520a340e8
update exec docs to match implemented behaviour
2016-01-14 12:44:05 +01:00
Ari Porad
99f71be89d
Merge pull request #268 from nfischer/MultipleErrorMessages
...
Commands that have multiple errors now produce cleaner log output
2016-01-13 16:10:03 -08:00
Tingluo Huang
9ca9b6144a
Make sure Which() on Windows platform always return the command with extension.
2016-01-13 15:03:17 -05:00
Nate Fischer
8a7f7ceec4
add exec.stdout
...
Change `exec.output` to `exec.stdout` and deprecate `output`.
2016-01-12 17:14:13 -08:00
Nate Fischer
74f1ff8748
Commands that have multiple errors now produce cleaner log output. Errors are
...
echoed to stderr. exec() supports a new stderr field.
2016-01-12 17:02:19 -08:00
Nate Fischer
5d1ccec687
Merge pull request #240 from BYK/patch-1
...
Fix `os.tmpdir` bug
2016-01-11 17:57:05 -08:00
Brett Jones
08b4212b15
add touch(1)
2016-01-11 19:47:09 -06:00
Nate Fischer
dbe3395ea9
docs(spelling): fix typo in source comment
2016-01-11 13:29:44 -08:00
Brandon Freitag
9ce87da61b
Fix cp to match unix behavior
...
In unix, if src is a directory and dest doesn't exist, 'cp -r src dest' will copy src/* into dest. Fix cp('-r', 'src', 'dest') to behave the same way.
2016-01-11 01:32:54 -08:00
Burak Yiğit Kaya
06f35f8a76
Fix os.tmpdir bug
...
The checked method on `os` module was `tempDir` which was not existing on any version of Node (should have been `tmpDir`). With Node 0.10, the name became `tmpdir`.
2015-10-06 16:49:09 +03:00
Artur Adib
a38ef4557e
Merge pull request #228 from rezonant/feat-capitalX
...
feat-multisymbolic + Support for directory entry (capital X in chmod terms)
2015-08-29 16:07:33 -04:00
Artur Adib
e05ca3f8c4
Merge pull request #227 from rezonant/feat-multisymbolic
...
Fixes an issue with multi-symbolic mode specification (ie a-rwx,u+rw)
2015-08-29 16:03:44 -04:00
Artur Adib
09363768df
Merge pull request #166 from ratbeard/master
...
remove empty for loop and leaked i var
2015-08-29 15:56:25 -04:00
Liam (GH:rezonant)
766c2ddb59
Implements capital X (entry on directories)
2015-08-26 16:00:06 -04:00
Liam (GH:rezonant)
865a8d7c80
Oops, was commented out for verification
2015-08-26 15:08:20 -04:00
Liam (GH:rezonant)
670420c90e
Fixes said broken test
2015-08-26 15:01:04 -04:00
Julian Laval
3d01d64385
Patched stream closing issue
2015-08-11 16:50:10 +01:00
Julian Laval
ab142f522f
Manually closing streams
2015-08-11 09:53:37 +01:00
Charlie Rudolph
86e2d57cbc
prevent internal error: write after end
2015-07-02 15:53:36 -07:00
Artur Adib
25f0cf0b24
Merge pull request #179 from andreialecu/fix-rmrfwin32
...
Fix issue #49 : Retry rmdirSync on Windows for up to 1 second if files still exist.
2015-06-05 10:10:42 -04:00
Tristan Davies
4dca63ac33
100% more execSync, 99% less busywait
2015-02-25 09:28:06 -05:00
Andrei Alecu
7ddbba67c2
Changed error code to EAGAIN
2015-01-23 20:49:20 +02:00