README.md in frontkick-0.5.3 vs README.md in frontkick-0.5.4
- old
+ new
@@ -68,9 +68,23 @@
```
ruby
└─ echo
```
+NOTE: This interface is different with Kernel.spawn or Open3.popen3. They works with no shell if multiple arguments are given rather than an array as:
+
+```
+spawn('echo', '*')
+```
+
+### Environment Variables
+
+You can pass environment variables as a hash for the 1st argument as [spawn](https://ruby-doc.org/core-2.4.0/Kernel.html#method-i-spawn).
+
+```ruby
+result = Frontkick.exec({"FOO"=>"BAR"}, ["echo", "*"])
+```
+
### Dry Run Option
```ruby
result = Frontkick.exec(["echo", "*"], :dry_run => true)
puts result.stdout #=> echo \*