You can change your lib/plumbing file. If you add a space to the regular
expressions in the 'matches' rules it should work. Maybe you will need
to have two rules, one for making simple right clicking without
selection work in acme (no spaces in the regexp) and the other (with
spaces) to be able to select the exact filename, and plumb it, even if
it has spaces. Like so:

type    is    text
data    matches    '[a-zA-Z¡-￿0-9_\-./]+'
data    matches   
'([a-zA-Z¡-￿0-9_\-./]+)\.(ps|PS|eps|EPS|pdf|PDF|dvi|DVI)'
arg    isfile    $0
plumb    to    postscript
plumb    start    9 page $file

type    is    text
data    matches    '[a-zA-Z¡-￿0-9_\-./ ]+'
data    matches    '([a-zA-Z¡-￿0-9_\-./
]+)\.(ps|PS|eps|EPS|pdf|PDF|dvi|DVI)'
arg    isfile    $0
plumb    to    postscript
plumb    start    9 page $file

I haven't tried this though.

-Fritz


Am 22.07.2015 um 15:20 schrieb Eduardo Alvarez:
> Hello, all,
>
> I've recently been introduced to plan9port, and have been fiddling
> about with the plumber. As a test, I tried using the plumber to open
> several different files wherever I specified. I noticed, however, that
> I was unable to plumb files whose names had spaces in them. A search
> on google on the subject threw as the only solution "use shorter
> filenames". Fair enough, but I wanted to know if this is a limitation
> of the plumber itself, or if the regular expressions used can
> accomodate for spaces.
>
> Regards,
>
> Eduardo Alvarez


Reply via email to