nodejsscript • Docs
nodejsscript / s / PopDirFunction
PopDirFunction(
options
,dir
):ShellArray
When no arguments are given, popd removes the top directory from the stack
and performs a cd
to the new top directory.
The elements are numbered from 0 starting at the first directory listed with dirs;
i.e., popd
is equivalent to popd +0
. Returns an array of paths in the stack.
• options: string
Available options:
- -n
: Suppresses the normal change of directory when removing directories
from the stack, so that only the stack is manipulated
- -q
: Suppresses output to the console.
• dir: "+N"
Removes the Nth directory (counting from the left of the list printed by dirs), starting with zero.
Returns an array of paths in the stack.
PopDirFunction(
options
,dir
):ShellArray
When no arguments are given, popd removes the top directory from the stack
and performs a cd
to the new top directory.
The elements are numbered from 0 starting at the first directory listed with dirs;
i.e., popd
is equivalent to popd +0
. Returns an array of paths in the stack.
• options: string
Available options:
- -n
: Suppresses the normal change of directory when removing directories
from the stack, so that only the stack is manipulated
- -q
: Suppresses output to the console.
• dir: "-N"
Removes the Nth directory (counting from the right of the list printed by dirs), starting with zero.
Returns an array of paths in the stack.
PopDirFunction(
options
,dir
):ShellArray
When no arguments are given, popd removes the top directory from the stack
and performs a cd
to the new top directory.
The elements are numbered from 0 starting at the first directory listed with dirs;
i.e., popd
is equivalent to popd +0
. Returns an array of paths in the stack.
• options: string
Available options:
- -n
: Suppresses the normal change of directory when removing directories
from the stack, so that only the stack is manipulated
- -q
: Suppresses output to the console.
• dir: string
You can only use -N and +N.
Returns an array of paths in the stack.
PopDirFunction(
dir
):ShellArray
When no arguments are given, popd removes the top directory from the stack
and performs a cd
to the new top directory.
The elements are numbered from 0 starting at the first directory listed with dirs; i.e., popd is equivalent to popd +0. Returns an array of paths in the stack.
• dir: "+N"
Removes the Nth directory (counting from the left of the list printed by dirs), starting with zero.
Returns an array of paths in the stack.
PopDirFunction(
dir
):ShellArray
When no arguments are given, popd removes the top directory from the stack
and performs a cd
to the new top directory.
The elements are numbered from 0 starting at the first directory listed with dirs;
i.e., popd
is equivalent to popd +0
. Returns an array of paths in the stack.
• dir: "-N"
Removes the Nth directory (counting from the right of the list printed by dirs), starting with zero.
Returns an array of paths in the stack.
PopDirFunction(
dir
):ShellArray
When no arguments are given, popd removes the top directory from the stack
and performs a cd
to the new top directory.
The elements are numbered from 0 starting at the first directory listed with dirs;
i.e., popd
is equivalent to popd +0
. Returns an array of paths in the stack.
• dir: string
You can only use -N and +N.
Returns an array of paths in the stack.
PopDirFunction():
ShellArray
When no arguments are given, popd removes the top directory from the stack
and performs a cd
to the new top directory.
The elements are numbered from 0 starting at the first directory listed with dirs;
i.e., popd
is equivalent to popd +0
. Returns an array of paths in the stack.
Returns an array of paths in the stack.