Tiny Core Linux
Tiny Core Base => TCB Talk => Topic started by: pgf on February 02, 2010, 02:24:55 PM
-
any chance someone could enable vi editing mode in busybox? it's a very frustrating thing to have missing, if you're used to using vi-mode in other shells.
(tinycore is great, btw -- thank you for "distro-izing" busybox.)
paul
-
What do you mean?
The TC busybox includes vi.
-
I guess it's the shell command line and history editing mode that the OP is referring to. You usually get it with "set -o vi" (e.g. in bash or ksh).
Our busybox sh accepts this command and seem to change an internal flag (as can be seen from "set -o" output), unfortunately the editing mode does not change at all.
As I've seen the same with the busybox sh of Slitaz I'd tend to see this as a bug of busybox. OTOH it could well be a busybox compile time setting that would need to be changed by Robert. In which case I'm with the OP in asking to enable that feature in the future (since I'm also very much used to this VI mode).
-
Yes, I think OP is referring to those prompt editing modes.
See CONFIG_FEATURE_EDITING_VI in busybox to try it out.
-
yes, thanks -- i'm referring to CONFIG_FEATURE_EDITING_VI, which should be enabled in the busybox build.
btw, "set -o vi" is accepted and ignored, even when this feature is disabled, so that user profile scripts which set it don't break. i suppose it's arguable that maybe the script _should_ break, but since the option only affects interactive use, i think it's better the way it is.
-
@Robert: I was wondering at what point you are planning to re-build busybox.
IIRC for TC 2.9rc2 and 2.9rc3 you had included a new version (v1.15.3) which you then dropped from 2.9rc4 onwards (back to v1.14.3). Today I could have really done better with this VI editing mode and thought "Hey didn't we have that at some stage?" Turns out we had this for those two release candidates only. Any chance of a rebuild with v1.14.3 or are planning another attempt with the latest stable version (i.e. v1.16.1)?
-
We were experiencing segfaults with 1.15.3.
I have been so focused on writing infrastructure code that I do need reminding to try again with a later busybox. Will add to my current TODO list.
-
Robert: Please don't misunderstand me, there is no need to rush things or divert your attention for such a minor "feature".
OTOH according to the busybox web page they claim to have addressed several SEGV since v1.15.3 (plus a few potentially useful new applets like lspci, lsusb).
-
The fix for our problem should be in 1.16.1