るりまサーチ

最速Rubyリファレンスマニュアル検索!
138件ヒット [1-100件を表示] (0.084秒)

別のキーワード

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

検索結果

<< 1 2 > >>

Shell.new(pwd = Dir.pwd, umask = nil) -> Shell (39219.0)

プロセスのカレントディレクトリをpwd で指定されたディレクトリとするShellオ ブジェクトを生成します.

...プロセスのカレントディレクトリをpwd で指定されたディレクトリとするShell
ブジェクトを生成します.

@param pwd プロセスのカレントディレクトリをpwd で指定されたディレクトリとします。
指定しない場合は、Dir....

Shell::Filter.new(sh) -> Shell::Filter (21219.0)

Shell::Filter クラスのインスタンスを返します。 通常このメソッドを直接使う機会は少ないでしょう。

...
Shell
::Filter クラスのインスタンスを返します。
通常このメソッドを直接使う機会は少ないでしょう。...

Shell::ProcessController.new(shell) (21215.0)

自身を初期化します。

...自身を初期化します。

@param shell Shell のインスタンスを指定します。...

Shell::CommandProcessor.new(shell) (21203.0)

@todo

@todo

Shell.undef_system_command(command) -> Shell::CommandProcessor (21132.0)

commandを削除します.

...and 削除するコマンドの文字列を指定します。

動作例:
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
}
}
res...

絞り込み条件を変える

Shell::AppendFile.new(sh, filename) (21102.0)

@todo

@todo

Shell::AppendIO.new(sh, filename) (21102.0)

@todo

@todo

Shell::Cat.new(sh, *filenames) (21102.0)

@todo

@todo

Shell::Concat.new(sh, *jobs) (21102.0)

@todo

@todo

Shell::Echo.new(sh, *strings) (21102.0)

@todo

@todo

絞り込み条件を変える

Shell::Glob.new(sh, pattern) (21102.0)

@todo

@todo

Shell::SystemCommand.new(sh, command, *opts) (21102.0)

@todo

@todo

@param sh

@param command

@param opts

Shell::Tee.new(sh, filename) (21102.0)

@todo

@todo

Shell::Void.new(sh, *opts) (21102.0)

Shell.def_system_command(command, path = command) -> nil (21065.0)

Shell のメソッドとして command を登録します.

...
Shell
のメソッドとして command を登録します.

OS上のコマンドを実行するにはまず, Shellのメソッドとして定義します.
注) コマンドを定義しなくとも直接実行できる Shell#system コマンドもあります.

@param command Shell のメソッド...
...い場合はcommand と同じになります。

例)
require 'shell'
Shell
.def_system_command "ls"
# ls を定義

Shell
.def_system_command "sys_sort", "sort"
# sortコマンドをsys_sortとして定義

sh = Shell.new
sh.transact {
ls.each { |l|
puts l
}
(ls("-l")...

絞り込み条件を変える

Shell.alias_command(alias, command, *opts) {...} -> self (21053.0)

コマンドの別名(エイリアス)を作成します。 コマンドが無い場合は、Shell.def_system_command などであらかじめ作成します.

...コマンドの別名(エイリアス)を作成します。
コマンドが無い場合は、Shell.def_system_command などであらかじめ作成します.

@param alias エイリアスの名前を文字列で指定します.

@param command コマンド名を文字列で指定します.

@param...
...を指定します.

使用例: 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(alias) -> () (21049.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("...
<< 1 2 > >>