Merge pull request #4817 from claui/codify-inline-arguments

docs/Formula-Cookbook: preach what we practise
This commit is contained in:
Claudia 2018-09-04 19:33:38 +02:00 committed by GitHub
commit beb6656278
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -396,12 +396,7 @@ system "make", "target", "VAR2=value1", "VAR2=value2", "VAR3=values can have spa
``` ```
```ruby ```ruby
args = %W[ system "make", "CC=#{ENV.cc}", "PREFIX=#{prefix}"
CC=#{ENV.cc}
PREFIX=#{prefix}
]
system "make", *args
``` ```
Note that values *can* contain unescaped spaces if you use the multiple-argument form of `system`. Note that values *can* contain unescaped spaces if you use the multiple-argument form of `system`.