[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:10:21 -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 3:24 AM, Warlich, Christof wrote:
>> $ time var="Hello cruel" bash -c 'echo "${var} world!"; sleep 2; echo
>> "Goodbye World!"'
>> Hello cruel world!
>> Goodbye World!
>>
>> real 0m2,007s
>> user 0m0,001s
>> sys 0m0,006s
>
> Thanks for all of your enlightening comments, though I'm a bit disappointed
> that no one addressed why bash's "time" builtin obviously does so well!
`time' is not a builtin.
--
``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/
- [Help-bash] pass command to script, Warlich, Christof, 2019/04/26
- Re: [Help-bash] pass command to script, Warlich, Christof, 2019/04/26
- Re: [Help-bash] pass command to script, Greg Wooledge, 2019/04/26
- Re: [Help-bash] pass command to script,
Chet Ramey <=
- Re: [Help-bash] pass command to script, Warlich, Christof, 2019/04/26
- Re: [Help-bash] pass command to script, Chet Ramey, 2019/04/26
- Re: [Help-bash] pass command to script, Warlich, Christof, 2019/04/26
- Re: [Help-bash] pass command to script, Greg Wooledge, 2019/04/26
- Re: [Help-bash] pass command to script, Christof Warlich, 2019/04/26
- Re: [Help-bash] pass command to script, Chet Ramey, 2019/04/26
- Re: [Help-bash] pass command to script, Warlich, Christof, 2019/04/26
- Re: [Help-bash] pass command to script, Chet Ramey, 2019/04/26
- Re: [Help-bash] pass command to script, Christof Warlich, 2019/04/26
- Re: [Help-bash] pass command to script, Chet Ramey, 2019/04/26