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

Re: PATCH: new _print and thoughts on _arguments mutexes



Oliver Kiddle wrote:
>                      Does anyone know how I can determine if there is a
>currently active coprocess so the -p flag is only offered if it can be
>used.

I suppose you could play with (:>&p) type stuff.

>      I can find out which file-descriptors are currently active using
>/dev/fd/n tests but I haven't bothered because it wouldn't be much use
>unless I could create meaningful descriptions of the file/pipe that the
>file-descriptor points to.

Under Linux, readlink(2) on /proc/<foo>/fd/<n> is scarily useful.

-zefram



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