• turn on brace expansion earlier, so MKSH_BINSHREDUCED turns it off
• add first (uninstallable) draft of a dash-mksh package in the same spirit joe-jupp has; requested by Kaarlo “janPasi” Poski
This commit is contained in:
parent
270a86f895
commit
9c8c1827d9
38
main.c
38
main.c
@ -34,7 +34,7 @@
|
|||||||
#include <locale.h>
|
#include <locale.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
__RCSID("$MirOS: src/bin/mksh/main.c,v 1.277 2014/01/11 18:09:40 tg Exp $");
|
__RCSID("$MirOS: src/bin/mksh/main.c,v 1.278 2014/01/16 13:54:45 tg Exp $");
|
||||||
|
|
||||||
extern char **environ;
|
extern char **environ;
|
||||||
|
|
||||||
@ -230,6 +230,23 @@ main_init(int argc, const char *argv[], Source **sp, struct block **lp)
|
|||||||
if (!*ccp)
|
if (!*ccp)
|
||||||
ccp = empty_argv[0];
|
ccp = empty_argv[0];
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Turn on nohup by default. (AT&T ksh does not have a nohup
|
||||||
|
* option - it always sends the hup).
|
||||||
|
*/
|
||||||
|
Flag(FNOHUP) = 1;
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Turn on brace expansion by default. AT&T kshs that have
|
||||||
|
* alternation always have it on.
|
||||||
|
*/
|
||||||
|
Flag(FBRACEEXPAND) = 1;
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Turn on "set -x" inheritance by default.
|
||||||
|
*/
|
||||||
|
Flag(FXTRACEREC) = 1;
|
||||||
|
|
||||||
/* define built-in commands and see if we were called as one */
|
/* define built-in commands and see if we were called as one */
|
||||||
ktinit(APERM, &builtins,
|
ktinit(APERM, &builtins,
|
||||||
/* currently up to 51 builtins: 75% of 128 = 2^7 */
|
/* currently up to 51 builtins: 75% of 128 = 2^7 */
|
||||||
@ -312,25 +329,6 @@ main_init(int argc, const char *argv[], Source **sp, struct block **lp)
|
|||||||
/* setstr can't fail here */
|
/* setstr can't fail here */
|
||||||
setstr(vp, def_path, KSH_RETURN_ERROR);
|
setstr(vp, def_path, KSH_RETURN_ERROR);
|
||||||
|
|
||||||
/*
|
|
||||||
* Turn on nohup by default for now - will change to off
|
|
||||||
* by default once people are aware of its existence
|
|
||||||
* (AT&T ksh does not have a nohup option - it always sends
|
|
||||||
* the hup).
|
|
||||||
*/
|
|
||||||
Flag(FNOHUP) = 1;
|
|
||||||
|
|
||||||
/*
|
|
||||||
* Turn on brace expansion by default. AT&T kshs that have
|
|
||||||
* alternation always have it on.
|
|
||||||
*/
|
|
||||||
Flag(FBRACEEXPAND) = 1;
|
|
||||||
|
|
||||||
/*
|
|
||||||
* Turn on "set -x" inheritance by default.
|
|
||||||
*/
|
|
||||||
Flag(FXTRACEREC) = 1;
|
|
||||||
|
|
||||||
#ifndef MKSH_NO_CMDLINE_EDITING
|
#ifndef MKSH_NO_CMDLINE_EDITING
|
||||||
/*
|
/*
|
||||||
* Set edit mode to emacs by default, may be overridden
|
* Set edit mode to emacs by default, may be overridden
|
||||||
|
Loading…
x
Reference in New Issue
Block a user