27 Commits

Author SHA1 Message Date
Shubham Joshi
3367e0c6c7 feat(command): new command: uniq() (#453)
* Added uniq.js, need to add tests

* Added basic tests for uniq.js

* Implemented uniq and added tests

* Generated docs for uniq

* Fixed lint error

* Added suport for -c and -d to uniq

* Generated docs

* Fixed formatting errors. Uniq now correctly returns empty string when output is specified

* Added uniq to piped methods

* Improved comment legibility

* Cleaned up the pipeline

* Added pipe test for uniq

* Converted uniq pipe test file to use linux line endings

* Fixed linting errors
2016-07-22 15:49:09 -07:00
Nate Fischer
56fbf5c414 feat(cp): -P option, plus better handling of symlinks (#421) 2016-04-08 15:34:54 -07:00
Nate Fischer
a1d5f6afb6 feat(command): new command: head() 2016-03-31 21:05:30 -07:00
Nate Fischer
f6952cb781 feat(command): new command: sort() 2016-03-31 21:05:30 -07:00
Nate Fischer
dc79d7eff0 fix(touch): enhance parseOptions and fix touch's -r flag 2016-02-04 15:41:48 -08:00
Nate Fischer
058bb679b0 feat(exec): allow all exec options to pass through 2016-02-03 20:54:41 -08: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
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
Ari Porad
b60ab70f02 test(shjs): add tests for shjs 2016-01-24 14:24:26 -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
Liam (GH:rezonant)
766c2ddb59 Implements capital X (entry on directories) 2015-08-26 16:00:06 -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
Artur Adib
537ba1c3a7 cp preserves mode bits 2013-09-02 14:13:04 -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
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
98f3b0b2ef minor 2013-01-08 11:31:20 -05:00
Artur Adib
91cb4ebb66 Merge pull request #48 from brandonramirez/chmod
Implemented chmod command.  Github issue 35
2013-01-08 08:29:10 -08:00
Brandon Ramirez
f1bf34aebb Add unit test directory stucture. Sorry, new to git. Forgot that it has no support for empty directories. 2012-12-30 09:29:59 -05:00
Brandon Ramirez
bc15f47b0b Include unit tests. 2012-12-29 19:49:48 -05:00
Marcus Stade
4bc3725137 Fixed tests. 2012-12-26 03:18:06 +01:00
Marcus Stade
5c8040b3fd Fixes arturadib/shelljs#44 2012-12-24 02:46:28 +01:00
James Campos
8a46ec6c83 add test tests (causes mv tests to fail 2012-09-08 19:14:35 -07:00
Artur Adib
41809795b4 more ls('-Ra') fixes 2012-03-26 11:31:04 -04:00
Artur Adib
79133e53a7 basic find() 2012-03-14 15:40:05 -04:00
Artur Adib
f4a2ae3379 first commit 2012-03-01 20:22:44 -05:00