1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
4 # T2 SDE: package/.../pdksh/initrd-usability.patch
5 # Copyright (C) 2007 The T2 SDE Project
7 # More information can be found in the files COPYING and README.
9 # This patch file is dual-licensed. It is available under the license the
10 # patched project is licensed under, as long as it is an OpenSource license
11 # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
12 # of the GNU General Public License as published by the Free Software
13 # Foundation; either version 2 of the License, or (at your option) any later
15 # --- T2-COPYRIGHT-NOTE-END ---
17 As we use the pdksh as the default shell in the initrd, it was a common
18 request to make it a bit more intuitive by default: history and editing +
19 tab completion - as most people are used from daily work already.
21 - Rene Rebe <rene@exactcode.de>
23 --- pdksh-5.2.14/main.c 1999-05-11 15:59:52.000000000 +0200
24 +++ pdksh-5.2.14-hackery/main.c 2007-02-26 15:59:50.110424557 +0100
26 change_flag(FPOSIX, OF_SPECIAL, 1);
27 #endif /* POSIXLY_CORRECT */
29 + /* Set edit mode to emacs by default, may be overridden. */
30 +#if defined(EDIT) && defined(EMACS)
31 + change_flag(FEMACS, OF_SPECIAL, 1);
32 +#endif /* EDIT && EMACS */
34 /* import enviroment */
36 for (wp = environ; *wp != NULL; wp++)
37 --- pdksh-5.2.14/emacs.c 1999-07-07 21:43:43.000000000 +0200
38 +++ pdksh-5.2.14-hackery/emacs.c 2007-02-26 16:03:05.517560175 +0100
41 { XFUNC_transpose, 0, CTRL('T') },
43 - { XFUNC_complete, 1, CTRL('[') },
44 + { XFUNC_complete, 0, '\t' },
45 { XFUNC_comp_list, 1, '=' },
46 { XFUNC_enumerate, 1, '?' },
47 { XFUNC_expand, 1, '*' },