commit 39de6d4d5013c50b3a1e3e53b6225e9fafd80631
parent 29a8b574dae2b1058054aa34e635fcf5c23cce4f
Author: Cem Keylan <cem@ckyln.com>
Date: Thu, 16 Apr 2020 05:10:58 +0300
yaic: exit if '/q' is received.
Diffstat:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/yaic b/yaic
@@ -232,6 +232,7 @@ main() {
:v|:version) msg "${0##*/}-0.1.0" ; continue ;;
:*) msg "${0##*/}: Unknown Command '$msg'" "Type :help to get commands" ; continue ;;
/names) msg="/names $c" ;;
+ /q) printf '%s\n' "/q" >> "$infile" ; break ;;
esac
printf '%s\n' "$msg"
done >> "$infile"