[Groonga-commit] droonga/droonga-http-server at 36e18dd [master] Use "read -p" to show prompt

Back to archive index

YUKI Hiroshi null+****@clear*****
Tue Sep 16 14:05:14 JST 2014


YUKI Hiroshi	2014-09-16 14:05:14 +0900 (Tue, 16 Sep 2014)

  New Revision: 36e18ddf12d8571f0bff60c46049d48038776c7d
  https://github.com/droonga/droonga-http-server/commit/36e18ddf12d8571f0bff60c46049d48038776c7d

  Message:
    Use "read -p" to show prompt

  Modified files:
    install.sh

  Modified: install.sh (+1 -3)
===================================================================
--- install.sh    2014-09-16 13:59:56 +0900 (f0fe096)
+++ install.sh    2014-09-16 14:05:14 +0900 (e5542d1)
@@ -153,10 +153,8 @@ determine_hostname() {
 
 input_hostname() {
   prompt="$1: "
-  echo -n "$prompt"
-  while read TYPED_HOSTNAME; do
+  while read -p "$prompt" TYPED_HOSTNAME; do
     if [ "$TYPED_HOSTNAME" != "" ]; then break; fi
-    echo -n "$prompt"
   done
   return 0
 }
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-commit mailing list
Back to archive index