Package: xmlstarlet
Version: 1.0.1-2
Severity: normal
Using bash and dog, the following happens:
$ xmlstarlet sel -t -v /appliance/@name <(dog --no-header
http://garden.dachary.org/packaging-farm.xml)
/dev/fd/63:1: parser error : Document is empty
^
/dev/fd/63:1: parser error : Start tag expected, '<' not found
^
however, when using wc(1) it works:
$ wc <(dog --no-header http://garden.dachary.org/packaging-farm.xml)
14 57 1587 /dev/fd/63
strace shows the following:
open("/dev/fd/63", O_RDONLY|O_LARGEFILE) = 3
fstat64(3, {st_mode=S_IFIFO|0600, st_size=0, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0xb7fdc000
read(3, "<appliance name=\"packaging-farm\""..., 16384) = 1587
read(3, "", 12288) = 0
_llseek(3, 0, 0xbf81526c, SEEK_CUR) = -1 ESPIPE (Illegal seek)
_llseek(3, 18446744073709547520, 0xbf815350, SEEK_SET) = -1 ESPIPE (Illegal
seek)
write(2, "/dev/fd/63:1: ", 14/dev/fd/63:1: ) = 14
write(2, "parser ", 7parser ) = 7
write(2, "error : ", 8error : ) = 8
write(2, "Document is empty\n", 18Document is empty
) = 18
-- System Information:
Debian Release: 4.0
APT prefers unstable
APT policy: (500, 'unstable'), (500, 'stable'), (1, 'experimental')
Architecture: i386 (i686)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.18-1-vserver-686
Locale: LANG=en_US, LC_CTYPE=en_US (charmap=ISO-8859-1)
Versions of packages xmlstarlet depends on:
ii libc6 2.6.1-1 GNU C Library: Shared libraries
ii libxml2 2.6.30.dfsg-2 GNOME XML library
ii libxslt1.1 1.1.19-1 XSLT processing library - runtime
ii zlib1g 1:1.2.3.3.dfsg-5 compression library - runtime
xmlstarlet recommends no packages.
-- no debconf information
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]