]> Zhao Yanbai Git Server - minix.git/commitdiff
ash: default to an editing mode 27/327/1
authorBen Gras <ben@minix3.org>
Wed, 13 Feb 2013 16:19:15 +0000 (16:19 +0000)
committerBen Gras <ben@minix3.org>
Wed, 13 Feb 2013 16:19:15 +0000 (16:19 +0000)
. otherwise line editing is not initialized at all

Change-Id: I4b1aa5659720b1fd955ab0450b111085dcdc9dee

commands/ash/options.c

index c93ca2be15bb30bb03f491162c04c1a761c6c68d..23de7140934336a7f730f413c3c86f2fbbffa5de 100644 (file)
@@ -121,6 +121,9 @@ procargs(int argc, char **argv)
                shellparam.nparam++;
                argptr++;
        }
+#ifdef __minix
+       if(!Eflag && !Vflag) Eflag = 1;
+#endif
        optschanged();
 }