[Groonga-commit] droonga/droonga-engine at b1d9cff [master] Use "read -p" to show prompt

Back to archive index

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


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

  New Revision: b1d9cff560ff14079f607a0f8688712644a35d4e
  https://github.com/droonga/droonga-engine/commit/b1d9cff560ff14079f607a0f8688712644a35d4e

  Message:
    Use "read -p" to show prompt

  Modified files:
    install.sh

  Modified: install.sh (+1 -3)
===================================================================
--- install.sh    2014-09-16 13:59:25 +0900 (8de80c7)
+++ install.sh    2014-09-16 14:04:46 +0900 (f26288f)
@@ -141,10 +141,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