120 Commits

Author SHA1 Message Date
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
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
idearat
ac6994a740 Add -l and -s support to grep. 2014-04-18 15:58:15 -06:00
Michael Schoonmaker
93987f6a4a Add a regression test for ln treating abspaths badly. 2013-10-11 11:33:49 -07:00
Michael Schoonmaker
b715c2c240 Add ln support, including both -s and -f options. 2013-10-10 18:03:09 -07:00
Artur Adib
193968a978 remove old shims 2013-09-21 10:19:38 -04:00
Artur Adib
21f721cb45 more stringent jshint; catch leaks/undefs 2013-09-21 10:12:28 -04:00
Artur Adib
b932ad1f18 fix rm test 2013-09-11 14:08:02 -04:00
Artur Adib
9e38daa8e8 rm: don't fail to remove symlinks to dirs 2013-09-11 13:58:35 -04:00
Nils Bunger
d97c34627c Make shell.exec() treat process error return codes as shelljs errors 2013-09-08 17:16:08 -07:00
Artur Adib
537ba1c3a7 cp preserves mode bits 2013-09-02 14:13:04 -04:00
Andrew Duffy
ff5212aa97 Updated test for toEnd() to be more comprehensive. 2013-08-25 19:36:31 -07:00
Andrew Duffy
91c82e0cc6 Fixed README so that it's based off in-source documentation
Renamed appendTo() to toEnd().
2013-08-25 19:36:16 -07:00
Andrew Duffy
78e89faf28 Added appendTo() function to imitate '>>' redirect-and-append pipe. 2013-08-25 16:36:05 -07:00
Stephen Mathieson
023962cfff changes per @arturadib's code review 2013-06-12 11:23:56 -04:00
Stephen Mathieson
0ce07eee07 tempdir: use os.tmpDir when possible 2013-06-08 18:57:19 -04:00
Artur
55e1d662f7 Merge remote-tracking branch 'arturadib/master' 2013-04-21 17:01:41 -04:00
Artur
62da271665 find doesn't crash with broken symlinks 2013-04-21 17:01:02 -04:00
Artur Adib
3b57b24460 Merge pull request #56 from lge88/master
test('-L', badlink) should return true
2013-04-06 06:09:55 -07:00
Artur
f7d2e3c188 Merge remote-tracking branch 'iapain/exec-options-fix'
Conflicts:
	shell.js
2013-04-06 09:05:30 -04:00
Li Ge
38f1d6d9c4 If a symbolic link is broken, test('-L', badlink) should still return true.
While test('-L', 404) should return false.
2013-03-21 01:33:02 -07:00
Artur
5f15f49515 old makerjs --> shelljs 2013-03-20 09:24:05 -04:00
Deepak Thukral
7b9ee5a41d Kept existing options and re-wrote the test case. 2013-03-11 13:10:05 +01:00