shout/test/def.shout
Chris Wanstrath ce1503a9d4 Add @def directive for command macro substitution
Macros let setup files define reusable command shorthands that
test files can invoke by name or override with their own definition.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-19 11:28:59 -07:00

14 lines
160 B
Plaintext

@def greet echo "hello world"
@def multi echo "line one"; \
echo "line two"
$ greet
hello world
$ multi
line one
line two
$ echo "not a macro"
not a macro