るりまサーチ

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

別のキーワード

  1. process abort
  2. process fork
  3. process setrlimit
  4. tracer display_process_id?
  5. tracer display_process_id

ライブラリ

クラス

モジュール

キーワード

検索結果

Shell::CommandProcessor#cat(*files) -> Shell::Filter (21113.0)

実行すると, それらを内容とする Filter オブジェクトを返します.

....

@param files シェルコマンド cat に与えるファイル名を文字列で指定します。

動作例
require 'shell'
Shell.def_system_command("head")
sh = Shell.new
sh.transact {
glob("*.txt").to_a.each { |file|
file.chomp!
cat
(file).each { |l|
echo(l) |...

Shell::CommandProcessor#concat(*jobs) -> Shell::Concat (9200.0)

@todo

@todo

Shell::CommandProcessor#truncate(path, length) -> 0 (9100.0)

File クラスにある同名のクラスメソッドと同じです.

...File クラスにある同名のクラスメソッドと同じです.

@param path パスを表す文字列を指定します。

@param length 変更したいサイズを整数で与えます。

@see File.truncate...

Etc::SC_2_PBS_LOCATE -> Integer (3101.0)

Etc.#sysconf の引数に指定します。

Etc.#sysconf の引数に指定します。

詳細は sysconf(3) を参照してください。

Shell::CommandProcessor#echo(*strings) -> Shell::Filter (3006.0)

実行すると, それらを内容とする Filter オブジェクトを返します.

...与える引数を文字列で指定します。

動作例
require 'shell'
Shell.def_system_command("head")
sh = Shell.new
sh.transact {
glob("*.txt").to_a.each { |file|
file.chomp!
cat
(file).each { |l|
echo(l) | tee(file + ".tee") >> "all.tee"
}
}
}...

絞り込み条件を変える

Shell::CommandProcessor#glob(pattern) -> Shell::Filter (3006.0)

実行すると, それらを内容とする Filter オブジェクトを返します.

...Dir.[] を参照してください。

動作例
require 'shell'
Shell.def_system_command("head")
sh = Shell.new
sh.transact {
glob("*.txt").to_a.each { |file|
file.chomp!
cat
(file).each { |l|
echo(l) | tee(file + ".tee") >> "all.tee"
}
}
}

@see Dir.[]...

Shell::CommandProcessor#tee(file) -> Shell::Filter (3006.0)

実行すると, それらを内容とする Filter オブジェクトを返します.

...るファイル名を文字列で指定します。

動作例
require 'shell'
Shell.def_system_command("head")
sh = Shell.new
sh.transact {
glob("*.txt").to_a.each { |file|
file.chomp!
cat
(file).each { |l|
echo(l) | tee(file + ".tee") >> "all.tee"
}
}
}...

ruby 1.6 feature (66.0)

ruby 1.6 feature ruby version 1.6 は安定版です。この版での変更はバグ修正がメイン になります。

...なりました。((<ruby-bugs-ja:PR#205>))

* ((<Enumerable/each_with_index>)) が self を返すようになった(以前は nil)
* ((<Process/Process.setpgrp>)) が返す値が不定だった。
* ((<String/ljust>)), ((<String/rjust>)), ((<String/center>)) の結果に
変化がなく...
....6 の stable-snapshot を使用している方は、2002/1/30
の以下の変更(ChangeLog)

* re.c (rb_reg_search): should set regs.allocated.

で、メモリリークが起こるようになってることに注意してください。
2002/2/13 以降の修正版で直ってま...
...め、以下のようなコードで異常な状態になっていました。
((<ruby-bugs-ja:PR#91>))

%w!a! "b"
=> -:1: tried to allocate too big memory (NoMemoryError)
ruby 1.6.5 (2001-09-19) [i586-linux]

=> -:1: parse error
%w!a! "b"
^...

NEWS for Ruby 2.2.0 (42.0)

NEWS for Ruby 2.2.0 このドキュメントは前回リリース以降のバグ修正を除くユーザーに影響のある機能の変更のリストです。

...* 改善: Kernel.#throw は、対応する catch ブロックがないとき ArgumentError ではなく
ArgumentError のサブクラスである UncaughtThrowError を発生させるようになりました


* Process
* 拡張: Process.spawn のような外部プロセスを起動...
...f yielded arguments does not match the formal
arguments of the lambda, if just an array is yielded and its length
matches.

* Process
* Process.spawn のようなプロセスを起動するようなメソッドは [:out, :err]
からリダイレクトされるファイルを...
...ださい。

* etc
* 追加: Etc.#uname
* 追加: Etc.#sysconf
* 追加: Etc.#confstr
* 追加: IO#pathconf
* 追加: Etc.#nprocessors

* find, pathname
* 拡張: Find.#find は "ignore_error" というキーワード引数を受け付けるようになりました

*...