✨ ARCANUM RUNE DIFFICULTY: Archmage Behavioral

The Executable Rune (Command)

Encapsulating a request as an object (a constructed sed command string) for later execution.

✧ GANG OF FOUR LINEAGE & ARCANUM ✧
GOF DESIGN PATTERN: Command
ARCANUM SCHOOL: Transmutation // Streamweaving
SCRIBE / ARCHON: Joshua Edward McLaughlin Cox
CANONICAL REGISTRATION:
// CODEX INCANTATION //
# Command: Storing commands in the hold space to execute later (requires GNU sed `e`)
/^CMD:/ {
  s/^CMD://
  h
  d
}
/^EXEC/ {
  g
  # 'e' command evaluates the pattern space as a shell command
  e
}
Runic Tags: #sed #behavioral #command