Eric Blake wrote:
...
>> +check_timestamps_updated()
>> +{
>> + local delay="$1"
>
> I guess we're blindly assuming that coreutils testsuite is requiring a
> shell that supports 'local'?
Yes. So far it hasn't been an issue.
$ git grep '^ *local' tests
tests/dd/reblock: local delay="$1"
tests/dd/reblock: local delay="$1"
tests/init.cfg: local saved_IFS=$IFS
tests/init.cfg: local d d1
tests/init.cfg: local colon=
tests/init.cfg: local new_path=
tests/init.cfg: local pid=$!
tests/init.cfg: local test_func=$1
tests/init.cfg: local init_delay=$2
tests/init.cfg: local max_n_tries=$3
tests/init.cfg: local attempt=1
tests/init.cfg: local num_sleeps=$attempt
tests/init.cfg: local time_fail
tests/init.cfg: local delay=$($AWK -v n=$num_sleeps -v s="$init_delay" \
tests/misc/cat-buf: local delay="$1"
tests/misc/stdbuf: local delay="$1"
tests/misc/stdbuf: local delay="$1"
tests/mv/i-3: local delay="$1"
tests/rm/dangling-symlink: local delay="$1"
tests/rm/dangling-symlink: local present=0
tests/tail-2/F-vs-rename: local delay="$1"
tests/tail-2/F-vs-rename: local delay="$1"
tests/tail-2/F-vs-rename: local delay="$1"
tests/tail-2/flush-initial: local delay="$1"
tests/tail-2/inotify-rotate: local j
tests/tail-2/tail-n0f: local delay="$1"; sleep $delay
tests/tail-2/wait: local delay="$1"