Skip to content

Latest commit

 

History

History
162 lines (93 loc) · 4.74 KB

PopDirFunction.md

File metadata and controls

162 lines (93 loc) · 4.74 KB

nodejsscriptDocs


nodejsscript / s / PopDirFunction

Interface: 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.

Parameters

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

ShellArray

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.

Parameters

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

ShellArray

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.

Parameters

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

ShellArray

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.

Parameters

dir: "+N"

Removes the Nth directory (counting from the left of the list printed by dirs), starting with zero.

Returns

ShellArray

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.

Parameters

dir: "-N"

Removes the Nth directory (counting from the right of the list printed by dirs), starting with zero.

Returns

ShellArray

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.

Parameters

dir: string

You can only use -N and +N.

Returns

ShellArray

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

ShellArray

Returns an array of paths in the stack.