@@ -1617,24 +1617,61 @@ Use `{{{{` to include a literal `{{` in a format string:
16171617foo := f'I {{{{LOVE} curly braces!'
16181618```
16191619
1620- ### Ignoring Errors
1620+ ### Sigils
16211621
1622- Normally, if a command returns a non-zero exit status, execution will stop. To
1623- continue execution after a command, even if it fails, prefix the command with
1624- ` - ` :
1622+ Commands in linewise recipes may be prefixed with any combination of the sigils
1623+ ` - ` , ` @ ` , and ` ? ` .
1624+
1625+ The ` @ ` sigil toggles command echoing:
16251626
16261627``` just
16271628foo:
1628- -cat foo
1629- echo 'Done!'
1629+ @echo "This line won't be echoed!"
1630+ echo "This line will be echoed!"
1631+
1632+ @bar:
1633+ @echo "This line will be echoed!"
1634+ echo "This line won't be echoed!"
1635+ ```
1636+
1637+ The ` - ` sigil cause recipe execution to continue even if the command returns a
1638+ nonzero exit status:
1639+
1640+ ``` just
1641+ # execution will continue, even if bar doesn't exist
1642+ foo:
1643+ -rmdir bar
1644+ mkdir bar
1645+ echo 'so much good stuff' > bar/stuff.txt
1646+ ```
1647+
1648+ The ` ? ` sigil<sup >master</sup > causes the current recipe to stop executing if
1649+ the command exits with status code ` 1 ` , however execution of other recipes will
1650+ continue. Exit status ` 0 ` causes the current recipe to continue execution as
1651+ normal. All other exit codes are reserved and should not be used, as they may
1652+ be given meaning in a future version of ` just ` .
1653+
1654+ If the ` guards ` setting is unset or false, ` ? ` sigils are ignored and instead
1655+ treated as part of the command.
1656+
1657+ ``` just
1658+ set guards
1659+
1660+ @foo: bar
1661+ echo FOO
1662+
1663+ @bar:
1664+ ?[[ -f baz ]]
1665+ echo BAR
16301666```
16311667
16321668``` console
16331669$ just foo
1634- cat foo
1635- cat: foo: No such file or directory
1636- echo 'Done!'
1637- Done!
1670+ FOO
1671+ $ touch baz
1672+ $ just foo
1673+ BAR
1674+ FOO
16381675```
16391676
16401677### Functions
0 commit comments