-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
According to Tom Rodman on 3/10/2007 8:14 AM:
> ~ $ /tmp/foo <(echo ABC)
> + test -s /proc/self/fd/63
> + echo 1
>
> The 'test -s "$file"' in the test run above should return 0.
How do you figure? pipes are special file types, and st_size is
u
test script "/tmp/foo", and test run showing the problem:
~ $ cat /tmp/foo
#!/bin/bash
file=$1
TMPF=$(mktemp /tmp/XX)
set -x
test -s "$file" || echo $?
cp $file $TMPF
cat $TMPF
~ $ /tmp/foo <(echo ABC)
+ test -s /proc/self/fd/63
+ echo 1
1
+ cp /proc/self/fd/63 /tmp
2 matches
Mail list logo