2件ヒット
[1-2件を表示]
(0.017秒)
クラス
- Shell (2)
キーワード
-
unalias
_ command (1) -
undef
_ system _ command (1)
検索結果
先頭2件
-
Shell
. unalias _ command(alias) -> () (43.0) -
commandのaliasを削除します.
...例。
require 'shell'
Shell.def_system_command("ls")
Shell.alias_command("lsla", "ls", "-a", "-l")
Shell.def_system_command("sort")
sh = Shell.new
sh.transact {
(lsla | sort("-k 5")).each {|l|
puts l
}
}
Shell.unalias_command("lsla")
begin
Shell.unalias_command("... -
Shell
. undef _ system _ command(command) -> Shell :: CommandProcessor (25.0) -
commandを削除します.
...mmand 削除するコマンドの文字列を指定します。
動作例:
require 'shell'
Shell.def_system_command("ls")
# ls を定義
Shell.undef_system_command("ls")
# ls を 削除
sh = Shell.new
begin
sh.transact {
ls("-l").each {|l|
puts l
}
}
r...