るりまサーチ (Ruby 2.2.0)

最速Rubyリファレンスマニュアル検索!
2件ヒット [1-2件を表示] (0.023秒)
トップページ > クエリ:err[x] > クラス:Shell[x] > 種類:特異メソッド[x] > バージョン:2.2.0[x]

別のキーワード

  1. syslog err
  2. level log_err
  3. syslog log_err
  4. x509 v_err_invalid_ca
  5. x509 v_err_out_of_mem

ライブラリ

キーワード

検索結果

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 (43.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...