Skip to content

Commit

Permalink
Fix shell function example in readme (#2454)
Browse files Browse the repository at this point in the history
  • Loading branch information
casey authored Nov 6, 2024
1 parent 225ba34 commit 7eea772
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -1578,11 +1578,11 @@ file.
and can be changed with `set shell := […]`.

`command` is passed as the first argument, so if the command is `'echo $@'`,
the full command line, with the default shell command `shell -cu` and `args`
the full command line, with the default shell command `sh -cu` and `args`
`'foo'` and `'bar'` will be:

```
'shell' '-cu' 'echo $@' 'echo $@' 'foo' 'bar'
'sh' '-cu' 'echo $@' 'echo $@' 'foo' 'bar'
```

This is so that `$@` works as expected, and `$1` refers to the first
Expand Down

0 comments on commit 7eea772

Please sign in to comment.