Choose your pill (lemmy.world)
submitted 5 months ago* (last edited 5 months ago) by to c/linuxmemes@lemmy.world
 
you are viewing a single comment's thread
view the rest of the comments
[–] 6 points 5 months 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

  • source
  • parent