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

Compare commits

...

2 Commits

Author SHA1 Message Date
Greg Shuflin
cad84d2266
Merge 40133571de into 7eea772785 2024-11-06 02:06:05 -08:00
Casey Rodarmor
7eea772785
Fix shell function example in readme (#2454) 2024-11-06 01:49:04 -08:00

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