unalias_command(alias) -> ()
[permalink][rdoc]commandの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