[Pkg-javascript-commits] [node-shell-quote] 60/137: failing test for special shell parameter env vars

Bastien Roucariès rouca at moszumanska.debian.org
Fri Aug 25 19:19:39 UTC 2017


This is an automated email from the git hooks/post-receive script.

rouca pushed a commit to branch master
in repository node-shell-quote.

commit 728862a6ff246754083da5cf22322caf914ae990
Author: James Halliday <mail at substack.net>
Date:   Mon May 13 05:02:26 2013 -0700

    failing test for special shell parameter env vars
---
 test/env.js | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/test/env.js b/test/env.js
index 8fe3763..63cb7c9 100644
--- a/test/env.js
+++ b/test/env.js
@@ -26,3 +26,14 @@ test('environment variables with metacharacters', function (t) {
     
     t.end();
 });
+
+test('special shell parameters', function (t) {
+    var chars = '*@#?-$!0_'.split('');
+    t.plan(chars.length);
+    
+    chars.forEach(function (c) {
+        var env = {};
+        env['$' + c] = 'xxx';
+        t.same(parse('a $' + c + ' c', env), [ 'a', 'xxx', 'c' ]);
+    });
+});

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-shell-quote.git



More information about the Pkg-javascript-commits mailing list