Mercurial > repo
changeset 12185:42f2882255c3 draft
<fizzie> sled /hackenv/le/rn_append//s|wisdom|${HACKENV-/hackenv}/wisdom|
author | HackEso <hackeso@esolangs.org> |
---|---|
date | Sun, 24 Nov 2019 16:24:56 +0000 |
parents | bbbba102487e |
children | 1687b4cdce7a |
files | le/rn_append |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/le/rn_append Sun Nov 24 16:04:47 2019 +0000 +++ b/le/rn_append Sun Nov 24 16:24:56 2019 +0000 @@ -2,7 +2,7 @@ [[ "$1" == ?*"$sep"* ]] || exit 1 topic="$(echo "${1%%$sep*}" | lowercase)" stuff="${1#*$sep}" -perl -i -p -e 's/\n/ /' "wisdom/$topic" -echo "$stuff" >>"wisdom/$topic" +perl -i -p -e 's/\n/ /' "${HACKENV-/hackenv}/wisdom/$topic" +echo "$stuff" >>"${HACKENV-/hackenv}/wisdom/$topic" echo -n "Learned '$topic': " -cat "wisdom/$topic" +cat "${HACKENV-/hackenv}/wisdom/$topic"