12件ヒット
[1-12件を表示]
(0.173秒)
別のキーワード
検索結果
-
Shell
# popdir -> () (21201.0) -
ディレクトリスタックからポップし, それをカレントディレクトリにする.
...ディレクトリスタックからポップし, それをカレントディレクトリにする.
動作例
require 'shell'
Shell.verbose = false
sh = Shell.new
sh.pushd("/tmp")
p sh.cwd #=> "/tmp"
sh.pushd("/usr")
p sh.cwd #=> "/usr"
sh.popd
p sh.cwd #=> "/tmp"... -
Shell
# popd -> () (6101.0) -
ディレクトリスタックからポップし, それをカレントディレクトリにする.
...ディレクトリスタックからポップし, それをカレントディレクトリにする.
動作例
require 'shell'
Shell.verbose = false
sh = Shell.new
sh.pushd("/tmp")
p sh.cwd #=> "/tmp"
sh.pushd("/usr")
p sh.cwd #=> "/usr"
sh.popd
p sh.cwd #=> "/tmp"...