Joseph Kowalski wrote: > > > gmacs is considered an intuitive beginner's editing mode. It is the > > default editing mode in bash and more or less matches the common input > > mode of various GUI toolkits and desktops, including Gnome/GTK+, > > KDE/Qt, CDE/Motif, Mozilla/XULRunner/Gecko, JAVA, and Xaw/Xaw3D. > > None the less, this seems like a strange choice for Solaris as there isn't > anything called "gmacs" on the system.
Solaris ships no "emacs" either... :-) There are three choices: "vi", "emacs" and "gmacs". IMO "vi" is not an option (unless you want to punish beginners to learn "vi" before they can use something in the shell... =:-) ), leaving only "emacs" and "gmacs" as options (unless you want to drive more users into "bash"'s direction...). In ksh93 the "emacs" and "gmacs" modes are almost identical except one item: CTRL-T transposes two characters in "gmacs" mode while the "emacs" mode transposes one. BUt people who actually use CTRL-T are rare to find... at least I had to look into David Korn's "The New Kornshell" book to find this difference. > Uh, what "default editing mode" are you sighting for JAVA? Fetch any JAVA application which provides an input/editor widget. Most of the simple emacs/gmacs commands work in those widgets. > I think I would be more inclinded to be accepting of gmacs if it was the > common default mode for ksh on other systems. Is it? Linux distributions who ship ksh93 (such as SuSE) provide a /etc/ksh.kshrc files which sets it. The only difference is that they simply set the mode, overriding anything else and they don't care if there was anything else set yet. "gmacs" was picked per suggestion of community members - we could use "emacs" instead but the difference is almost zero (see above for the only difference). > > Interfaces: > > > > Interface Stability Description > > ========= ========= =========== > > /etc/ksh.kshrc Uncommitted Per-system configuration file for > > interactive ksh93 sessions > > This seems a little strange to me. Would Committed for the file itself > and format Uhm... there is no "fixed" format - /etc/ksh.kshrc is a shell script (fragment) which gets sourced before ~/.kshrc ... > be more appropriate, with the default default of gmacs (or > whatever) being Uncommitted? I think reality is that once you ship such > a file, we are not likely to be able to change its existance or format - > too many administrators will latch on to it. ... what is your concern here ? IMO you really don't want to remove /etc/ksh.kshrc later (unless you want to punish admins) and the format doesn't change either - it's a ksh shell script fragment. ---- Bye, Roland -- __ . . __ (o.\ \/ /.o) roland.mainz at nrubsig.org \__\/\/__/ MPEG specialist, C&&JAVA&&Sun&&Unix programmer /O /==\ O\ TEL +49 641 7950090 (;O/ \/ \O;)