From 02efac873cc72e38ad7917bfd9072b5f4402b9fd Mon Sep 17 00:00:00 2001 From: Marcus Stade Date: Thu, 27 Dec 2012 17:56:24 +0100 Subject: [PATCH] Use internal functions rather than exports. --- shell.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/shell.js b/shell.js index 81587de..e019fe5 100644 --- a/shell.js +++ b/shell.js @@ -923,10 +923,10 @@ function _pushd(options, dir) { _dirStack.unshift(dir); if (!options['n']) { - exports.cd(_dirStack[0]); + _cd('', _dirStack[0]); } - return _dirs(); + return _dirs(''); }; exports.pushd = wrap('pushd', _pushd); @@ -963,13 +963,13 @@ function _popd(options, index) { var dir = _dirStack.get(index || "+0") if (!options['n']) { - exports.cd(_dirStack[0]); + _cd('', _dirStack[0]); } } else { error('directory stack empty') } - return _dirs(); + return _dirs(''); }; exports.popd = wrap("popd", _popd);