• OwOarchist@pawb.social
    link
    fedilink
    English
    arrow-up
    2
    ·
    edit-2
    8 hours ago

    I should make a Schrodinger’s Linux.

    Every command you enter has a 50% chance of being ignored, and the output of all commands is hidden and come with a 30s delay, so you never know whether the command was actually executed or not.

    • Myk@kzoo.to
      link
      fedilink
      arrow-up
      2
      ·
      7 hours ago

      @OwOarchist
      With bash. All things are possible.
      alias cat=schrodinger.sh

      #!/usr/bin/env bash set -euo pipefail if (( RANDOM % 2 )); then echo "meow" else command cat "$@" fi