Nate Fischer
8377b927bf
fix(cp): add -n option, make -f default behavior
2016-02-03 21:13:48 -08:00
Nate Fischer
f729896516
Merge pull request #329 from shelljs/feat-set-command
...
feat(set): add new set() command
2016-01-31 20:26:39 -08:00
Ari Porad
ee5baf7344
Merge pull request #326 from shelljs/fix-cat-semantics
...
fix(cat): make behavior more like unix
2016-01-31 20:25:26 -08:00
Nate Fischer
ca045ea4c5
feat(set): add new set() command
...
Add new set() command as a wrapper for `config` variables. This takes the `-e`,
`-v`, `+e`, and `+v` flags.
2016-01-31 20:17:37 -08:00
Nate Fischer
2d1ee4dae4
fix(mv): add -n option, make -f default behavior
2016-01-31 15:34:01 -08:00
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
Nate Fischer
580d6d3301
fix(cat): make behavior more like unix
...
`cat()` no longer puts '\n's in weird places (causing double newlines), and
no longer improperly strips off a trailing newline.
2016-01-31 00:07:53 -08: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
Nate Fischer
b170d20122
Merge pull request #297 from BYK/fix-win-tests
...
Fix tests on Windows
2016-01-27 19:04:37 -08:00
Nate Fischer
985ac20cd6
fix(windows): fix shjs tests for windows
2016-01-27 15:24:08 -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
70ec630f92
Add invalid tests for ln
2016-01-25 01:59:20 -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
Nate Fischer
f47a8e2eb8
Merge pull request #304 from ariporad/shjs-tests
...
test(shjs): add tests for shjs
2016-01-24 20:50:29 -08:00
Timothy Gu
18df9540ab
Make to and toEnd chainable
2016-01-24 15:03:20 -08:00
Ari Porad
b60ab70f02
test(shjs): add tests for shjs
2016-01-24 14:24:26 -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
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
Brandon Freitag
5b7bbe8d8b
Update broken tests with new cp behavior
2016-01-14 02:36:53 -08: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
Brett Jones
08b4212b15
add touch(1)
2016-01-11 19:47:09 -06:00
Brandon Freitag
9c8db201ca
Add test for added cp behavior
2016-01-11 01:32:55 -08:00
Liam (GH:rezonant)
766c2ddb59
Implements capital X (entry on directories)
2015-08-26 16:00:06 -04:00
Liam (GH:rezonant)
55225d9a0d
A broken test
2015-08-26 15:00:33 -04:00
Liam (GH:rezonant)
e4e026dac4
Fixes incorrect mask
2015-08-26 14:20:07 -04:00
Liam (GH:rezonant)
9aba4d4ab2
Adds more tests
2015-08-26 14:17:57 -04:00
Artur Adib
20db182fcb
Revert "Merge pull request #116 from idearat/master"
...
This reverts commit 65b658d1e47f380e4a50a859a871c8c48d1bd775, reversing
changes made to e88679a4a9146017cc9821efa4645acc7ef428c4.
2014-06-15 12:00:00 -04:00
Artur Adib
65b658d1e4
Merge pull request #116 from idearat/master
...
Add -l and -s support to grep.
2014-06-15 11:52:20 -04:00
idearat
5aaca88461
Update tests to deal with potential ordering differences.
2014-04-23 05:32:52 -06:00
Artur Adib
8ba50dcf6b
Merge pull request #119 from utensil/118-grep-glob
...
grep() support for globing, fixes #118
2014-04-21 14:05:30 -04:00
utensil
dd15cff4e6
improve tests on ** for directory name
2014-04-20 15:13:31 +08:00
utensil
46231f432e
fix order issue under node 0.8
2014-04-20 10:39:59 +08:00
utensil
98aad77ea4
add ** glob tests for common.expand() and fail it
2014-04-19 21:51:56 +08:00
utensil
668bd168c7
add test for common.expand() and pass it
2014-04-19 21:49:48 +08:00
utensil
a2549f8589
fix typo
2014-04-19 21:47:10 +08:00
utensil
c8d63ef675
add grep glob test, ** for dir name, fails it
2014-04-19 21:31:46 +08:00
utensil
356a9edb75
add grep glob test, * for file name, passes
2014-04-19 21:30:52 +08:00
utensil
3968dc41e7
make sed() support replacement function, fixes #115
2014-04-19 21:05:47 +08:00