[Top][All Lists]

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

Re: [Help-bash] pass command to script

From: Chet Ramey
Subject: Re: [Help-bash] pass command to script
Date: Fri, 26 Apr 2019 09:50:55 -0400
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:60.0) Gecko/20100101 Thunderbird/60.6.1

On 4/26/19 9:37 AM, Warlich, Christof wrote:
> Chet Ramey wrote:
>> `time' is not a builtin.
> Ah ok, I wasn't aware that there is a difference between "shell keywords" and 
> "shell builtins":

Keywords are reserved words like `for' and `case' that introduce or are
part of compound commands. Builtins are, well, builtin commands. The `time'
reserved word just indicates that the following command should be timed,
which is performed internally. That's how bash can time pipelines and
compound commands.

> But what I am really interested in is you guys (and girls! 😊) view on whether 
> it would be desirable (and implementable with affordable effort) to add some 
> form of a nestable quoting mechanism (e.g. something like $[...]) to bash for 
> the reasons I tried to point out in my previous post.

The $'...' form of quoting comes pretty close, but anything can fail when
you expand the words and arbitrary number of times.

``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU    address@hidden

reply via email to

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