るりまサーチ

最速Rubyリファレンスマニュアル検索!
12件ヒット [1-12件を表示] (0.113秒)
トップページ > クエリ:l[x] > クエリ:shell[x] > クエリ:unalias_command[x]

別のキーワード

  1. shell/builtin-command new
  2. shell/builtin-command each
  3. etc sc_shell
  4. shell notify
  5. shell cd

ライブラリ

クラス

検索結果

Shell.unalias_command(alias) -> () (41373.0)

commandのaliasを削除します.

...aliasを削除します.

@param alias 削除したいエイリアスの名前を文字列で指定します。

@raise NameError alias で指定したコマンドが無い場合に発生します。

使用例: ls -la | sort -k 5 のような例。
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("lsla")
rescue NameError => err
puts err
end...

Shell::CommandProcessor.unalias_command(alias) -> self (27301.0)

エイリアスを削除します。

...エイリアスを削除します。

@param alias 削除したいエイリアスを指定します。...