Comment 17 for bug 9054

Revision history for this message
Polaris (arnold-maestre) wrote : Re: [Bug 9054] Re: gedit does not read from a pipe

On Feb 12, 2008 3:44 PM, descent <email address hidden> wrote:

> you can do it like this:
>
> ls -l > - | gedit -

Yes, but in this case this works because "-" is a physical file. So you end
up with a file named "-" in the folder (and probably in the 'ls -l' output,
too), which could be disturbing for some users (especially since 'rm -'
doesn't work, you have to issue 'rm "-"').

You can actually do this properly, like: ls -l >/tmp/dummy | gedit
/tmp/dummy (or /dev/shm/dummy, if available), but reading from a pipe would
be far nicer.
--
Arnold