Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: bug with eval, proc-subst and pipes



On Jul 18, 11:08am, Bart Schaefer wrote:
}
} Hmm.  Some strace output would be nice, then, because the only way the
} /proc/self/fd or whatever file should be not found is if the descriptor
} has been closed

Hrm, or if somehow it wasn't open *yet* when paste was forked, but that
makes even less sense.

Here's a possible experiment:

What do you get if you replace "paste" with "ls -l" ?

I get this on CentOS:

lr-x------  1 schaefer schaefer 64 Jul 18 11:22 /proc/self/fd/13 -> pipe:[815357]
lr-x------  1 schaefer schaefer 64 Jul 18 11:22 /proc/self/fd/14 -> pipe:[815358]
lr-x------  1 schaefer schaefer 64 Jul 18 11:22 /proc/self/fd/15 -> pipe:[815359]
lr-x------  1 schaefer schaefer 64 Jul 18 11:22 /proc/self/fd/16 -> pipe:[815360]

Or on ubuntu:

prw-rw----  0 schaefer  staff  2 Jul 18 11:20 /dev/fd/13
prw-rw----  0 schaefer  staff  2 Jul 18 11:20 /dev/fd/14
prw-rw----  0 schaefer  staff  2 Jul 18 11:20 /dev/fd/15
prw-rw----  0 schaefer  staff  2 Jul 18 11:20 /dev/fd/16



Messages sorted by: Reverse Date, Date, Thread, Author