[TUHS] Warner's Early Unix Presentation

Rob Pike robpike at gmail.com
Sun Feb 9 09:11:06 AEST 2020

Not for me it doesn't.

% bash

bash-3.2$ function f() {

    echo hi


bash-3.2$ export f

bash-3.2$ bash

bash-3.2$ f


I added the 'builtin' command, which did leave the labs. But I added it as
a way for the "whatis" command to show a builtin, as well as allowing a way
to guarantee you get the builtin on execution.

How do I get bash to print the function as (shell) source code, so I could
edit it and play with it again? It was the synergy of all this stuff
connected seamlessly that made it so compelling.


On Sun, Feb 9, 2020 at 10:02 AM Chet Ramey <chet.ramey at case.edu> wrote:

> On 2/8/20 5:54 PM, Rob Pike wrote:
> > Like exportable functions and output that's valid input, so it works well
> > with an editable typescript.
> Bash has both of those things.
> --
> ``The lyf so short, the craft so long to lerne.'' - Chaucer
>                  ``Ars longa, vita brevis'' - Hippocrates
> Chet Ramey, UTech, CWRU    chet at case.edu    http://tiswww.cwru.edu/~chet/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://minnie.tuhs.org/pipermail/tuhs/attachments/20200209/17d0fb8a/attachment.html>

More information about the TUHS mailing list