mirror of
https://github.com/ruby/ruby.git
synced 2025-09-17 17:43:59 +02:00
[DOC] Fix minor inconsistencies
This commit is contained in:
parent
224e76ada7
commit
84312e688f
1 changed files with 8 additions and 8 deletions
10
process.c
10
process.c
|
@ -3078,8 +3078,8 @@ NORETURN(static VALUE f_exec(int c, const VALUE *a, VALUE _));
|
||||||
* it must begin with a shell reserved word, begin with a special built-in,
|
* it must begin with a shell reserved word, begin with a special built-in,
|
||||||
* or contain meta characters:
|
* or contain meta characters:
|
||||||
*
|
*
|
||||||
* exec('echo') # Built-in.
|
|
||||||
* exec('if true; then echo "Foo"; fi') # Shell reserved word.
|
* exec('if true; then echo "Foo"; fi') # Shell reserved word.
|
||||||
|
* exec('echo') # Built-in.
|
||||||
* exec('date > date.tmp') # Contains meta character.
|
* exec('date > date.tmp') # Contains meta character.
|
||||||
*
|
*
|
||||||
* The command line may also contain arguments and options for the command:
|
* The command line may also contain arguments and options for the command:
|
||||||
|
@ -4750,8 +4750,8 @@ rb_spawn(int argc, const VALUE *argv)
|
||||||
* it must begin with a shell reserved word, begin with a special built-in,
|
* it must begin with a shell reserved word, begin with a special built-in,
|
||||||
* or contain meta characters:
|
* or contain meta characters:
|
||||||
*
|
*
|
||||||
* system('echo') # => true # Built-in.
|
|
||||||
* system('if true; then echo "Foo"; fi') # => true # Shell reserved word.
|
* system('if true; then echo "Foo"; fi') # => true # Shell reserved word.
|
||||||
|
* system('echo') # => true # Built-in.
|
||||||
* system('date > /tmp/date.tmp') # => true # Contains meta character.
|
* system('date > /tmp/date.tmp') # => true # Contains meta character.
|
||||||
* system('date > /nop/date.tmp') # => false
|
* system('date > /nop/date.tmp') # => false
|
||||||
* system('date > /nop/date.tmp', exception: true) # Raises RuntimeError.
|
* system('date > /nop/date.tmp', exception: true) # Raises RuntimeError.
|
||||||
|
@ -4926,11 +4926,11 @@ rb_f_system(int argc, VALUE *argv, VALUE _)
|
||||||
* it must begin with a shell reserved word, begin with a special built-in,
|
* it must begin with a shell reserved word, begin with a special built-in,
|
||||||
* or contain meta characters:
|
* or contain meta characters:
|
||||||
*
|
*
|
||||||
* spawn('echo') # => 798847
|
* spawn('if true; then echo "Foo"; fi') # => 798847 # Shell reserved word.
|
||||||
* Process.wait # => 798847
|
* Process.wait # => 798847
|
||||||
* spawn('if true; then echo "Foo"; fi') # => 798848
|
* spawn('echo') # => 798848 # Built-in.
|
||||||
* Process.wait # => 798848
|
* Process.wait # => 798848
|
||||||
* spawn('date > /tmp/date.tmp') # => 798879
|
* spawn('date > /tmp/date.tmp') # => 798879 # Contains meta character.
|
||||||
* Process.wait # => 798849
|
* Process.wait # => 798849
|
||||||
* spawn('date > /nop/date.tmp') # => 798882 # Issues error message.
|
* spawn('date > /nop/date.tmp') # => 798882 # Issues error message.
|
||||||
* Process.wait # => 798882
|
* Process.wait # => 798882
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue