diff --git a/doc/user_guide.md b/doc/user_guide.md index 99cdc25..13748f1 100644 --- a/doc/user_guide.md +++ b/doc/user_guide.md @@ -1508,6 +1508,18 @@ default do end ``` +Options that Ruby's `spawn` method accepts can also be passed in to the `sh` +method. +For example, to execute the given command with a different working directory, +the `:chdir` option can be specified: + +```ruby +default do + # Execute 'ls' from within the 'src' directory: + sh "ls", chdir: "src" +end +``` + ##> Extending Rscons ### Adding New Languages