bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Add a new internal command to BASH


From: Bob Proulx
Subject: Re: Add a new internal command to BASH
Date: Thu, 22 May 2008 21:42:32 -0600
User-agent: Mutt/1.5.13 (2006-08-11)

Abhinandan wrote:
> lists@mgreg 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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]