Skip to content

Commit

Permalink
failing test for special shell parameter env vars
Browse files Browse the repository at this point in the history
  • Loading branch information
James Halliday committed May 13, 2013
1 parent 9d4a8f5 commit 728862a
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions test/env.js
Original file line number Diff line number Diff line change
Expand Up @@ -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' ]);
});
});

0 comments on commit 728862a

Please sign in to comment.