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

Re: Bug#112424: zsh: zsh can't read from /proc



On Sep 17, 11:34am, Clint Adams wrote:
} Subject: Re: Bug#112424: zsh: zsh can't read from /proc
}
} Do we want to special-case this?
} 
} > zsh seems to have trouble reading from /proc special files.
} > 
} > The problem is that zsh reads files one byte at a time.

Hrm.  There's always

    read -u0 -k 128 HOST </proc/sys/kernel/hostname

but that has the drawback of returning a nonzero $?.

In any case, it appears that bash and bash2 have the same behavior when
reading from that file, so I'd say this is not our bug to fix.

-- 
Bart Schaefer                                 Brass Lantern Enterprises
http://www.well.com/user/barts              http://www.brasslantern.com

Zsh: http://www.zsh.org | PHPerl Project: http://phperl.sourceforge.net   



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