Re: [leaf-devel] Command recall Oxygen(yes) Bering(no) DF(no)
On Mon, Oct 14, 2002 at 09:31:56PM +0200, Jacques Nilo wrote: > Sorry for jumping in late in this thread. Ditto. > One idea has been suggested: > Switch to bbox ash. Oxygen uses a statically compiled busybox with ash included. busybox comes with about 5 different choices for a shell. I've found it hard to find any significant differences between ksh and ash - except "set -o vi" doesn't work :-) --- This sf.net email is sponsored by: viaVerio will pay you up to $1,000 for every account that you consolidate with us. http://ad.doubleclick.net/clk;4749864;7604308;v? http://www.viaverio.com/consolidator/osdn.cfm ___ leaf-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/leaf-devel
Re: [leaf-devel] Command recall Oxygen(yes) Bering(no) DF(no)
On Mon, Oct 14, 2002 at 04:59:03PM +0200, Jon Clausen said: > On Mon, Oct 14, 2002 at 10:36:35AM +0100, Luis.F.Correia wrote: > > Command recall that is used in all Leaf variants uses a patch made by > > someone > > from the LRP community to add 'command history' to the original ASH. > > > > It may be possible that this patch is not functional for long lines. > > While we're on the subject: > > I've never had command recall work on any of the LEAFs I've built, when > SSH'ing in. Usually works fine at the physical console, just not over > the network. Am I missing something, or can I get that? Where are you SSH'ing in from? I'd guess that you've got some kind of termcap issue, and that LEAF is defaulting back to some dumb terminal type. Do an 'echo $TERM' and see what you get, then maybe do something like 'TERM=vt100 sh' and see if that fixes the recall. Cheers Si > Plus command/path completion would be nice :) > > Jon Clausen > > > --- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > > ___ > leaf-devel mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/leaf-devel --- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf ___ leaf-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/leaf-devel
Re: [leaf-devel] Command recall Oxygen(yes) Bering(no) DF(no)
Sorry for jumping in late in this thread. To summarize: Command recall does work with Bering and DF both from the console and through any linux terminal. ssh should not cause any trouble. Directory expansion does not work at this stage. One idea has been suggested: Switch to bbox ash. This implies some fixes of /linuxrc but should be quite easy to do. But I am much more worried with shell intensive application: shorewall comes first to my mind but ipsec is also full of scripts. Another idea would be to port dash to slink. http://packages.debian.org/unstable/shells/dash.html The footprint is smaller than the current bering ash (I compiled it under woody) and it might be worth trying if command history and/or directory expansion work. I tried to compiled it quickly with uml but got a pb with #define statement. Any volunteer to test that ? Jacques --- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf ___ leaf-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/leaf-devel
RE: [leaf-devel] Command recall Oxygen(yes) Bering(no) DF(no)
On Mon, 2002-10-14 at 08:26, Luis.F.Correia wrote: > > I command my Leaf through a serial line. I have no experience with ssh. > > 'command/path completion' is available on BusyBox... > but it seems busybox sh is not suitable... > Current versions of busybox ash are quite suitable for LEAF distros. I can't guarantee that busybox ash supports every command in the full ash, and early versions were inadequate in that respect, but the current version is Good Enough for Government Work. -Richard --- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf ___ leaf-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/leaf-devel
Re: [leaf-devel] Command recall Oxygen(yes) Bering(no) DF(no)
On Mon, Oct 14, 2002 at 10:24:40AM -0500, Charles Steinkuehler wrote: > > While we're on the subject: > Command recall works fine for me via ssh. I use putty when in windows > (just plain ol' ssh on linux). I do set my putty keyboard settings and > terminal type to "linux", but that's more to get the back-space & delete > keys working properly...I've never had a problem with "up-arrow" in > either ash or bash. so I just tried it with an xterm... works beautifully... goes to check the settings in kterm... change around a bit... works... Feel kind of stupid... all that time I've been typing, typing, typing... DOH! > I also have tab command/path completion, but then, I typically run bash > off the CD...gotta love all that extra space :-) Gotta try that out some day ;) Thanks, Jon Clausen --- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf ___ leaf-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/leaf-devel
RE: [leaf-devel] Command recall Oxygen(yes) Bering(no) DF(no)
On Mon, 2002-10-14 at 02:36, Luis.F.Correia wrote: > Command recall that is used in all Leaf variants uses a patch made by > someone > from the LRP community to add 'command history' to the original ASH. > > It may be possible that this patch is not functional for long lines. > > Please note that ash has had no changes since 1999... > Dave Cinege (who started LRP, which forked off LEAF) wrote the patch that provides command history for ash. Busybox ash provides command hisory and completion, and is generally much improved over the original. -Richard --- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf ___ leaf-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/leaf-devel
RE: [leaf-devel] Command recall Oxygen(yes) Bering(no) DF(no)
I command my Leaf through a serial line. I have no experience with ssh. 'command/path completion' is available on BusyBox... but it seems busybox sh is not suitable... -Original Message- From: Jon Clausen [mailto:[EMAIL PROTECTED]] Sent: Monday, October 14, 2002 3:59 PM To: [EMAIL PROTECTED] Subject: Re: [leaf-devel] Command recall Oxygen(yes) Bering(no) DF(no) On Mon, Oct 14, 2002 at 10:36:35AM +0100, Luis.F.Correia wrote: > Command recall that is used in all Leaf variants uses a patch made by > someone > from the LRP community to add 'command history' to the original ASH. > > It may be possible that this patch is not functional for long lines. While we're on the subject: I've never had command recall work on any of the LEAFs I've built, when SSH'ing in. Usually works fine at the physical console, just not over the network. Am I missing something, or can I get that? Plus command/path completion would be nice :) Jon Clausen --- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf ___ leaf-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/leaf-devel --- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf ___ leaf-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/leaf-devel
Re: [leaf-devel] Command recall Oxygen(yes) Bering(no) DF(no)
> While we're on the subject: > > I've never had command recall work on any of the LEAFs I've built, when > SSH'ing in. Usually works fine at the physical console, just not over > the network. Am I missing something, or can I get that? > > Plus command/path completion would be nice :) Command recall works fine for me via ssh. I use putty when in windows (just plain ol' ssh on linux). I do set my putty keyboard settings and terminal type to "linux", but that's more to get the back-space & delete keys working properly...I've never had a problem with "up-arrow" in either ash or bash. I also have tab command/path completion, but then, I typically run bash off the CD...gotta love all that extra space :-) Charles Steinkuehler http://lrp.steinkuehler.net http://c0wz.steinkuehler.net (lrp.c0wz.com mirror) --- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf ___ leaf-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/leaf-devel
Re: [leaf-devel] Command recall Oxygen(yes) Bering(no) DF(no)
On Mon, Oct 14, 2002 at 10:36:35AM +0100, Luis.F.Correia wrote: > Command recall that is used in all Leaf variants uses a patch made by > someone > from the LRP community to add 'command history' to the original ASH. > > It may be possible that this patch is not functional for long lines. While we're on the subject: I've never had command recall work on any of the LEAFs I've built, when SSH'ing in. Usually works fine at the physical console, just not over the network. Am I missing something, or can I get that? Plus command/path completion would be nice :) Jon Clausen --- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf ___ leaf-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/leaf-devel
RE: [leaf-devel] Command recall Oxygen(yes) Bering(no) DF(no)
Command recall that is used in all Leaf variants uses a patch made by someone from the LRP community to add 'command history' to the original ASH. It may be possible that this patch is not functional for long lines. Please note that ash has had no changes since 1999... -Original Message- From: Simon Blake [mailto:[EMAIL PROTECTED]] Sent: Sunday, October 13, 2002 9:07 AM To: Nathan Angelacos Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Re: [leaf-devel] Command recall Oxygen(yes) Bering(no) DF(no) I've certainly noticed commandline recall problems with Bering - uneditable multilines, and also weird behaviour with the history buffer appears to get corrupted and adds crap to the end of some commands in the buffer. So you're not alone :-) Cheers Si On Sat, Oct 12, 2002 at 03:38:34PM +, Nathan Angelacos said: > > It pains me to realize that I've been using command > > recall in Ox, DF, and BF for a long time now. The > > up arrow works great. My apologies for losing my mind. > > Perhaps you aren't losing your mind... > Do you also have the experience that that ash seems > to have problems with the "up-arrow" command recall > when the command is greater than the screen width - > you can't edit the first part of a multiline > command? (where multiline is a long command line > without the use of '\' ?) > > > Thanks for the explanation. I guess what I'm really > > missing in filename/directoryname completion. > > After checking further, BusyBox ash (0.60.3) with > command auto completion seems to work here on bering > if you: > > compile EXPR into busybox, and comment out line 204 > in linuxrc: ># expr () { exp $@ ; } > > Probably you could get away with not compiling in > expr and changing line 204 to read: > expr () { $(( $@ ; )) } > > But the shell gurus should comment on that theory... > > > Also, at the top of linuxrc (line 30 something) there's > a call to [, which fails since busybox hasn't been > installed yet. Guess its a shell internal in ash, but > a "program" in BB. > > The offending line is: > >if [ $DEBUG ] ; then > > A solution might be to change the line to read: > if /bin/busybox test $DEBUG ; then > > > or just define BB=/bin/busybox a little earlier in > the script and then call > if $BB test $DEBUG ; then > > That seems to run through the linuxrc without any > errors, and gives a nice shell with auto completion > and correct behavior in using command recall. > > > > > > --- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > > ___ > leaf-devel mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/leaf-devel --- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf ___ leaf-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/leaf-devel --- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf ___ leaf-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/leaf-devel
Re: [leaf-devel] Command recall Oxygen(yes) Bering(no) DF(no)
I've certainly noticed commandline recall problems with Bering - uneditable multilines, and also weird behaviour with the history buffer appears to get corrupted and adds crap to the end of some commands in the buffer. So you're not alone :-) Cheers Si On Sat, Oct 12, 2002 at 03:38:34PM +, Nathan Angelacos said: > > It pains me to realize that I've been using command > > recall in Ox, DF, and BF for a long time now. The > > up arrow works great. My apologies for losing my mind. > > Perhaps you aren't losing your mind... > Do you also have the experience that that ash seems > to have problems with the "up-arrow" command recall > when the command is greater than the screen width - > you can't edit the first part of a multiline > command? (where multiline is a long command line > without the use of '\' ?) > > > Thanks for the explanation. I guess what I'm really > > missing in filename/directoryname completion. > > After checking further, BusyBox ash (0.60.3) with > command auto completion seems to work here on bering > if you: > > compile EXPR into busybox, and comment out line 204 > in linuxrc: ># expr () { exp $@ ; } > > Probably you could get away with not compiling in > expr and changing line 204 to read: > expr () { $(( $@ ; )) } > > But the shell gurus should comment on that theory... > > > Also, at the top of linuxrc (line 30 something) there's > a call to [, which fails since busybox hasn't been > installed yet. Guess its a shell internal in ash, but > a "program" in BB. > > The offending line is: > >if [ $DEBUG ] ; then > > A solution might be to change the line to read: > if /bin/busybox test $DEBUG ; then > > > or just define BB=/bin/busybox a little earlier in > the script and then call > if $BB test $DEBUG ; then > > That seems to run through the linuxrc without any > errors, and gives a nice shell with auto completion > and correct behavior in using command recall. > > > > > > --- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > > ___ > leaf-devel mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/leaf-devel --- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf ___ leaf-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/leaf-devel
Re: [leaf-devel] Command recall Oxygen(yes) Bering(no) DF(no)
> It pains me to realize that I've been using command > recall in Ox, DF, and BF for a long time now. The > up arrow works great. My apologies for losing my mind. Perhaps you aren't losing your mind... Do you also have the experience that that ash seems to have problems with the "up-arrow" command recall when the command is greater than the screen width - you can't edit the first part of a multiline command? (where multiline is a long command line without the use of '\' ?) > Thanks for the explanation. I guess what I'm really > missing in filename/directoryname completion. After checking further, BusyBox ash (0.60.3) with command auto completion seems to work here on bering if you: compile EXPR into busybox, and comment out line 204 in linuxrc: # expr () { exp $@ ; } Probably you could get away with not compiling in expr and changing line 204 to read: expr () { $(( $@ ; )) } But the shell gurus should comment on that theory... Also, at the top of linuxrc (line 30 something) there's a call to [, which fails since busybox hasn't been installed yet. Guess its a shell internal in ash, but a "program" in BB. The offending line is: if [ $DEBUG ] ; then A solution might be to change the line to read: if /bin/busybox test $DEBUG ; then or just define BB=/bin/busybox a little earlier in the script and then call if $BB test $DEBUG ; then That seems to run through the linuxrc without any errors, and gives a nice shell with auto completion and correct behavior in using command recall. --- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf ___ leaf-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/leaf-devel
Re: [leaf-devel] Command recall Oxygen(yes) Bering(no) DF(no)
Nathan Angelacos wrote: Well, command recall is my wish for Bering rc4. >>Matt Sigh. Me too! It pains me to realize that I've been using command recall in Ox, DF, and BF for a long time now. The up arrow works great. My apologies for losing my mind. The reason is Oxygen uses BusyBox shell, and Bering uses "real" ash. Last time I tried to get bb shell to work with bering, there was a problem with initrc (can't remember specifically where in the script, but bering initrc seemed to want something that busybox couldn't understand, and it caused the startup to fail.) Thanks for the explanation. I guess what I'm really missing in filename/directoryname completion. Best, matthew --- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf ___ leaf-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/leaf-devel
Re: [leaf-devel] Command recall Oxygen(yes) Bering(no) DF(no)
> One reason I used to use Oxygen a lot is that it has > command recall and filename/directoryname completion > as part of it's shell, which I think is ash. But I > don't get what's different on the other LEAFs. Don't > people use the same shell? Also it has a a working $PWD. > > Well, command recall is my wish for Bering rc4. > Not enabled by default of course :) > Matt Me too! The reason is Oxygen uses BusyBox shell, and Bering uses "real" ash. Last time I tried to get bb shell to work with bering, there was a problem with initrc (can't remember specifically where in the script, but bering initrc seemed to want something that busybox couldn't understand, and it caused the startup to fail.) --- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf ___ leaf-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/leaf-devel