Skip to content

scripts/gen-examples uses dubious shell options and documents them wrong #166

@spookyvision

Description

@spookyvision
# Exit on error and unset variable usage, and print each command before
# executing it
set -euo pipefail
  1. none of these options print commands before executing. Did you let an LLM lie to you? (probably set -x comes closest to "print each command before executing")
  2. -euo pipefail comes with interesting pitfalls and should not be applied to scripts as a blanket treatment. See here for more information.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions