Abhinandan wrote: > [EMAIL PROTECTED] wrote: > > Abhinandan wrote: > > > I wanted to add a new internal command to bash, how shall I do it. > > > > Have you tried simply creating the executable (or script) and placing > > it in your PATH somewhere? > > thats not what i intend to do. I want to write my own command and compile > the bash source and then run that command as bash built in command
At one level the purpose of a command line shell is to run commands. Therefore when we read that you want to modify bash to insert new built in commands it is going to be met with questions as to why you would want to do this. For 99.999999% of the world using bash it is sufficient to create either external commands or shell functions. If you still want to modify the source that is okay. You are free to do so. Grab the source and modify it as you desire. But in order to get help from other people you would need to motivate them as to why you are one of the 0.000001% of the people who would need to do this. What are you trying to do that causes you to want to create new built in commands? Bob