view bin/whoq @ 12523:67a2e5342dad draft default tip

<b_jonas> learn The password of the month is outside the scope of this wisdom entry.
author HackEso <hackeso@esolangs.org>
date Tue, 01 Apr 2025 08:17:53 +0100
parents 3d6b560fc682
children
line wrap: on
line source

if [[ "$1" =~ ^[0-9]+$ ]]; then
  rev="$(hg blame ${HACKENV-/hackenv}/quotes | sed "$1{s/^ *//;s/:.*//;q};d")"
  if [[ -n "$rev" ]]; then
    hg log -r "$rev" -T "{desc}"
  else
    echo "$1: no such quote"
  fi
else
  echo "usage: \`whoq N"
fi