DEFINE(1)
DEFINE(1) β General Commands Manual π
okay so first things first: this is a page from the General Commands Manual, and the command is DEFINE(1). We're so back, bestie.
πΈ NAME πΈ
define β replace a literal with a value, then execute another program
β¨ SYNOPSIS β¨
define [-s] [-C | -c] [-N | -n] [-d delim] variable value prog..
π DESCRIPTION π
define performs substitution (cf. execline-substitute(7)) on prog..., using variable as key and value as value. That's the whole main character move, no cap.
The options on define are there to control the substitution mechanism; refer to execline-transform(7). Like, that's literally what they're for.
Then define execs into the modified prog.... periodt. π
The flags are all substitution-mechanism knobs, and this page is very much βgo read execline-transform(7)β about the details:
-sβ a substitution-mechanism flag; the deets live inexecline-transform(7).-Cβ one half of the-C | -cpair, also controlling the substitution mechanism; seeexecline-transform(7).-cβ the other half of-C | -c; same reference, same substitution-mechanism business.-Nβ one half of the-N | -npair, controlling the substitution mechanism;execline-transform(7)has the lore.-nβ the other half of-N | -n; again,execline-transform(7).-d delimβ takesdelimand controls the substitution mechanism; yes,execline-transform(7)again, bestie.
And the positional girlies: variable is the key, value is the value, and prog.. is the program that gets substituted on and then exec'd into. Iconic behavior. β¨
π¦ SEE ALSO π¦
elgetpositionals(1)elglob(1)importas(1)multidefine(1)multisubstitute(1)execline-substitute(7)execline-transform(7)
This man page is ported from the authoritative documentation at: https://skarnet.org/software/execline/define.html
π AUTHORS π
- Laurent Bercot
Alexis <flexibeast@gmail.com> (man page port)
Debian β’ February 14, 2021 β’ DEFINE(1) β that's the footer, bestie. Mwah πβ¨
π¦ where this page comes from
- nixpkgs unstable: execline 2.9.9.2
- nixpkgs unstable: execline-man-pages 2.9.9.1.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms