changeset 12085:148a9eb1caa3 draft

<fizzie> sled /hackenv/bin/learn//s|wisdom/|$HACKENV/wisdom/|
author HackEso <hackeso@esolangs.org>
date Sat, 16 Nov 2019 22:09:33 +0000
parents 0b26b70b01cf
children ef5ba4348bf2
files bin/learn
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/bin/learn	Sat Nov 16 22:08:34 2019 +0000
+++ b/bin/learn	Sat Nov 16 22:09:33 2019 +0000
@@ -1,6 +1,6 @@
 #!/bin/bash
 topic=$(echo "$1" | lowercase | sed 's/^\(an\?\|the\) //;s/s\?[:;,.!?]\? .*//')
-[ -e "wisdom/$topic" ] && verb="Relearned" || verb="Learned"
-echo "$1" >"$(echo-p "wisdom/$topic")"
+[ -e "$HACKENV/wisdom/$topic" ] && verb="Relearned" || verb="Learned"
+echo "$1" >"$(echo-p "$HACKENV/wisdom/$topic")"
 echo "$verb '$topic': $1"