null+****@clear*****
null+****@clear*****
2012年 5月 31日 (木) 14:08:05 JST
Kouhei Sutou 2012-05-31 14:08:05 +0900 (Thu, 31 May 2012)
New Revision: 762fa9ba661a55dbf18e1a97fe54a99c7a59916d
Log:
groonga: use batch mode when command is specified by command line
Without this change, command prompt is broken on Mac OS X.
Reported by @soundkitchen. Thanks!!!
Modified files:
src/groonga.c
Modified: src/groonga.c (+5 -1)
===================================================================
--- src/groonga.c 2012-05-31 13:23:37 +0900 (9096f2c)
+++ src/groonga.c 2012-05-31 14:08:05 +0900 (be50291)
@@ -2721,7 +2721,11 @@ main(int argc, char **argv)
}
batchmode = GRN_TRUE;
} else {
- batchmode = !isatty(0);
+ if (argc - i > 1) {
+ batchmode = GRN_TRUE;
+ } else {
+ batchmode = !isatty(0);
+ }
}
}