[Tomoyo-dev 1077] fix bashism

Back to archive index

Hideki Yamane henri****@debia*****
2009年 5月 24日 (日) 00:09:03 JST


 やまねです。
 また細かな所ですが、bashism の指摘があったのでパッチです。


--- ccs-init.orig	2009-05-23 23:59:54.000000000 +0900
+++ ccs-init	2009-05-24 00:06:14.000000000 +0900
@@ -98,7 +98,7 @@
       fi
       echo "disable"
       PROFILE=""
-      read -p "> " PROFILE
+      echo -n "> " && read PROFILE
       if [ $CHDIR_OK -eq 1 ]; then
 	  [ -r profile.conf -a "x$PROFILE" = "xdefault" ] && break
 	  [ "x$PROFILE" != "xdefault" -a "x$PROFILE" != "xdisable" -a -r profile-$PROFILE.conf ] && break

--- tomoyo-init.orig	2009-05-24 00:05:13.000000000 +0900
+++ tomoyo-init	2009-05-24 00:05:55.000000000 +0900
@@ -113,7 +113,7 @@
       fi
       echo "disable"
       PROFILE=""
-      read -p "> " PROFILE
+      echo -n "> " && read PROFILE
       if [ $CHDIR_OK -eq 1 ]; then
 	  [ -r profile.conf -a "x$PROFILE" = "xdefault" ] && break
 	  [ "x$PROFILE" != "xdefault" -a "x$PROFILE" != "xdisable" -a -r profile-$PROFILE.conf ] && break




tomoyo-dev メーリングリストの案内
Back to archive index