>I understand that i can login as bin and everything will work, but i
>have to do this cuz someone has asked me to help him out with this..it
>would be great if u could tell me where i could find the source for
>ash or any other place where this command completion is implemented
The source of ash is in /usr/src/commands/ash/ in an installation that
has CMD.TAZ. Look around for READLINE in the code, that's the switch
that enables line editing.
Quote:>and also if someone could tell me
>how exactly the shell flows, i mean when i start the shell then from
>main where does it go where it reads all the chars in till enter and
>then executes it..it would be really helpful..
I'm afraid I can't be of help here. I may have added the readline
support and a few other things to ash, but I didn't learn much about
it. I just went after the PS1 and PS2 prompts, where they were printed,
and added readline calls where lines were read.
You don't always have to understand code to the last line to make a few
(I wonder who this "u" is you're talking to.)
Kees J. Bot, Systems Programmer, Sciences dept., Vrije Universiteit Amsterdam