Skip to content

Commit

Permalink
doc: note bash is used
Browse files Browse the repository at this point in the history
  • Loading branch information
guybedford authored Apr 15, 2022
1 parent ef09a2f commit 7919eb2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/task.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ If after completion, any of the targets defined for the task still do not exist,

### Shell Tasks

The default `engine` is the shell environment - PowerShell on Windows or `sh` on posix machines.
The default `engine` is the shell environment - PowerShell on Windows or Bash on posix machines.

Common commands like `echo`, `pwd`, `cat`, `rm`, `cp`, `cd`, as well as operators like `$(cmd)`, `>`, `>>`, `|` form a subset of shared behaviours that can work when scripting between all platforms. With some care and testing, it is possible to write cross-platform shell task scripts. For PowerShell 5, Chomp will execute PowerShell in UTF-8 mode (applying to `>`, `>>` and `|`), although a BOM will still be output when writing a new file with `>`. Since `&&` and `||` are not supported in Powershell, multiline scripts and `;` are preferred instead.

Expand Down

0 comments on commit 7919eb2

Please sign in to comment.