Date:Mon, 9 Mar 2020 20:28:30 +0059.55
From:Martin Castillo
Message-ID: <5ad25080-7c13-9b9c-cff6-12ffee7af...@uni-bremen.de>
| Repeat-By:
| $ unset foo bar
| $ echo "${foo:=}/baz:${foo}/bat"|xxd
| : 7f2f 6261 7a3a 2f62 6174 0a ./baz:/bat.
Configuration Information [Automatically generated, do not change]:
Machine: x86_64
OS: linux-gnu
Compiler: gcc
Compilation CFLAGS: -march=x86-64 -mtune=generic -O2 -pipe -fno-plt
-DDEFAULT_PATH_VALUE='/usr/local/sbin:/usr/local/bin:/usr/bin'
-DSTANDARD_UTILS_PATH='/usr/bin' -DSYS_BASHRC='/etc/bash
On 3/7/20 10:39 AM, Peng Yu wrote:
See the following run time comparison. {1..100} is slower than
$(seq 100).
Since seq involves an external program, I'd expect the latter to be
slower. But the comparison shows the opposite.
I guess seq did some optimization?
seq does not have to stor