1
1
mirror of https://github.com/casey/just.git synced 2024-11-22 02:09:44 +03:00

Fix shell function example in readme (#2454)

This commit is contained in:
Casey Rodarmor 2024-11-06 01:49:04 -08:00 committed by GitHub
parent 225ba343f4
commit 7eea772785
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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