David Vasek schreef op 05-03-16 om 23:16:
> while echo n; do done
> is shorter (and even faster). But it doesn't help either.
It's also a syntax error on everything except {pd,m}ksh and zsh. Even
AT&T ksh doesn't support it.
>>> pax -rwk ${files} dst/
>
> It works when the ${files} contains filenames only, not pathnames.
> To mimic cp(1) more closely you need something like:
>
> $ pax -rwk -s "@^.*/@@" ${files} dst/
>
> If there are directories among ${files}, don't forget that pax(1) works
> recursively.
Good points.
- M.