Package: bash
Version: 3.2-4
Severity: normal

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

not sure what package this bug should be filed against, but I’m starting
here.

bash provides the process substition feature that allows you to write,
for example

$ diff <(echo hi) <(echo ho)
1c1
< hi
- ---
> ho

According to the docs, this works on systems with /dev/fd support or
named pipes (FIFOs). This should include every Debian system.

But depending on how you install your system, /dev/fd might be missing.
Especially after a basic installation with debootstrap, and without
installing udev, this directory is not present.

A work-around that I picked up somewhere is
# ln -s /proc/self/fd /dev/fd

A proper solution could be one of:
 * Give a proper error message about missing /dev/fd if <(..) is used, 
   telling the user to run the command mentioned above.
 * Fix debootstrap, if it is clear that /dev/fd should be present on
   every system. (But this would not help already installed systems)
 * Change bash to use /proc/self/fd instead (as this seems to work).
 * Use a temporary FIFO file when /dev/fd is not present, as described
   in the manpage.

Thanks,
Joachim 


- -- System Information:
Debian Release: 5.0
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.27-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages bash depends on:
ii  base-files                5              Debian base system miscellaneous f
ii  debianutils               2.30           Miscellaneous utilities specific t
ii  libc6                     2.7-18         GNU C Library: Shared libraries
ii  libncurses5               5.7+20081220-1 shared libraries for terminal hand

Versions of packages bash recommends:
ii  bash-completion               20080705   programmable completion for the ba

Versions of packages bash suggests:
pn  bash-doc                      <none>     (no description available)

- -- no debconf information

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iEYEARECAAYFAklmHVcACgkQ9ijrk0dDIGwydQCgzoWxnlb4x+ZqJEMxMPDHBvBx
jV4An35eyYudlc0hi87CpNaUaKUPb3ml
=HdA3
-----END PGP SIGNATURE-----



-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to