Can someone explain why stat
is interpreting its format string (except the first format sequence) as whitespace-delimited input parameters when passed as a variable to xargs
?
$ v="stat -c \"%8i %A\""; echo $v; echo /bin/ls | xargs -t $v
stat -c "%8i %A"
stat -c "%8i %A" /bin/ls
stat: cannot stat '%A"': No such file or directory