view bin/addquote @ 12327:b3e29671d69e draft

<b_jonas> learn ayacc is ais523\'s yacc parser generator implementation, get it from (darcs clone http://nethack4.org/projects/ayacc) or a snapshot from "http://nethack4.org/pastebin/ayacc-2020-04.tar.gz".
author HackEso <hackeso@esolangs.org>
date Wed, 08 Apr 2020 20:27:14 +0000
parents e1ce00d00682
children
line wrap: on
line source

#!/bin/sh
[ "$1" ] || exit 1
printf "%s\n" "$1" >>${HACKENV-/hackenv}/quotes
printf "%d) %s" $(qc | cut -d' ' -f1) "$1"