Skip to content
This repository has been archived by the owner on Sep 30, 2023. It is now read-only.

Commit

Permalink
fixing so that it writes to ./repl/tmp.pn instead of ./rmp.pn
Browse files Browse the repository at this point in the history
  • Loading branch information
pudility authored Aug 23, 2017
1 parent e71c637 commit 53495ad
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions repl/repl.sh
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
#!/bin/bash
echo "" > tmp.pn;
echo "" > ./repl/tmp.pn;

while [ true ]
do
read -p "> " cmd;
if [ "$cmd" == ".clear" ]; then
echo "" > tmp.pn;
echo "" > ./repl/tmp.pn;
clear;
echo "[cleared]";

elif [ "$cmd" == ".exit" ]; then
exit 0;
elif [ "$cmd" == ".read" ]; then
cat tmp.pn;
cat ./repl/tmp.pn;
else
echo $cmd >> tmp.pn;
echo $cmd >> ./repl/tmp.pn;
echo " -- ";
./pinecone tmp.pn;
./pinecone ./repl/tmp.pn;
fi
done
done

0 comments on commit 53495ad

Please sign in to comment.