changeset 107:6539ab2d189b

unix: avoid using non-portable `read -p' `read -p' is not POSIX-compatible, but bash-compatible. See [0], [1]. Thus replace it with `printf' and `read' combo that does the same, but still conforms with POSIX. [0]: http://pubs.opengroup.org/onlinepubs/9699919799/utilities/read.html [1]: https://www.gnu.org/software/bash/manual/bashref.html#index-read
author Ilya Tumaykin <itumaykin@gmail.com>
date Mon, 22 Feb 2016 03:49:49 +0300
parents 202e50aa5e08
children d7db67728279
files plat/unix/update_tags.sh
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/plat/unix/update_tags.sh	Mon Feb 22 03:29:08 2016 +0300
+++ b/plat/unix/update_tags.sh	Mon Feb 22 03:49:49 2016 +0300
@@ -99,5 +99,6 @@
 echo "Done."
 
 if [ $PAUSE_BEFORE_EXIT -eq 1 ]; then
-    read -p "Press ENTER to exit..."
+    printf "Press ENTER to exit..."
+    read
 fi