help-bash
[Top][All Lists]
Advanced

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

Re: [Help-bash] Writing custom builtins


From: Chet Ramey
Subject: Re: [Help-bash] Writing custom builtins
Date: Tue, 16 Jan 2018 11:43:19 -0500
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:52.0) Gecko/20100101 Thunderbird/52.5.2

On 1/16/18 10:29 AM, Samadi van Koten wrote:
> Hi,
> 
> I'm in the process of trying to write some builtins for Bash. I've
> installed the bash-builtins Debian package and used its headers to write a
> few simple tests, but my latest experiment is proving rather more
> difficult: I'd like to write a builtin that runs other bash commands, which
> could be builtins, functions or executables.

The easiest path to where you want to go is parse_and_execute().

-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU    address@hidden    http://tiswww.cwru.edu/~chet/



reply via email to

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