DEFINE(1)

πŸ“¦ version 2.9.9.2, in nixpkgs unstable

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 in execline-transform(7).
  • -C β€” one half of the -C | -c pair, also controlling the substitution mechanism; see execline-transform(7).
  • -c β€” the other half of -C | -c; same reference, same substitution-mechanism business.
  • -N β€” one half of the -N | -n pair, controlling the substitution mechanism; execline-transform(7) has the lore.
  • -n β€” the other half of -N | -n; again, execline-transform(7).
  • -d delim β€” takes delim and 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 πŸ¦‹

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