Skip to content

test harness entry points (tests/*.zsh) should Bail Out! if zsh was run without -f #444

Open
@danielshahaf

Description

@danielshahaf

Makefile runs tests under zsh -f.

The test harness entry points should enforce that zsh had been launched with -f and bail out if that's not the case. [[ $- == *f* ]] should work.

This would trigger if someone tries to run zsh tests/foo.zsh by hand, or to source that file from an interactive shell (that hadn't been started with -f; this caveat is probably fine).

(Related: the #! lines can't use -f because they use #!.../env zsh and passing multiple arguments is unportable.)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions