Skip to content

zsh-bench fails on Arch Linux: script: option --command and a command after '--' cannot be combined #35

Description

@yutkat

Description

Running ./zsh-bench on Arch Linux fails with:

==> benchmarking login shell ...
script: option --command and a command after '--' cannot be combined
Try 'script --help' for more information.
zsh-bench: either 'script' or 'zsh' is broken

zsh-bench/zsh-bench

Lines 626 to 627 in a3c48d6

script /dev/null '"command"' '"script"' -fqet${(qqq)timing_file} \
'"-c"' ${(qqq)cmd} ${(qqq)out_file}

Steps to Reproduce

docker run -it archlinux:latest /bin/bash
pacman -Syyu
pacman -S git zsh
zsh
git clone https://github.com/romkatv/zsh-bench
cd zsh-bench
./zsh-bench

Environment

  • OS: Arch Linux
  • util-linux: 2.42

Notes

Arch Linux ships util-linux 2.42. It appears that util-linux 2.40+ now rejects
combining -c/--command with a command after --, which is how zsh-bench
invokes script internally.

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