Skip to content

[Feature Request]: Allow passing --shell on a per-command basis #850

@sadan4

Description

@sadan4

I would like to be able to do something like

hyperfine --export-markdown=compare-shells.md \
-n zsh -S zsh '[[ -n $ZSH_VERSION ]] && echo something in zsh' \
-n bash -S bash '[[ -n $BASH_VERSION ]] && echo something in bash' \
-n "no shell" -S none 'echo no shell'

However i cannot do that because the shell option applies to every single command (the last one wins).

I would like to be able to set the shell on a per-command basis.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions