9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] Plumbing - Files with spaces
@ 2015-07-22 13:20 Eduardo Alvarez
  2015-07-22 13:29 ` dexen deVries
  2015-07-22 15:13 ` Friedrich Psiorz
  0 siblings, 2 replies; 4+ messages in thread
From: Eduardo Alvarez @ 2015-07-22 13:20 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

[-- Attachment #1: Type: text/plain, Size: 549 bytes --]

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

[-- Attachment #2: Type: text/html, Size: 632 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [9fans] Plumbing - Files with spaces
  2015-07-22 13:20 [9fans] Plumbing - Files with spaces Eduardo Alvarez
@ 2015-07-22 13:29 ` dexen deVries
  2015-07-22 14:07   ` erik quanstrom
  2015-07-22 15:13 ` Friedrich Psiorz
  1 sibling, 1 reply; 4+ messages in thread
From: dexen deVries @ 2015-07-22 13:29 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

[-- Attachment #1: Type: text/plain, Size: 176 bytes --]

there is trfs(4), not sure if applicable to plan9port.
trfs -  translate spaces and other runes in file names file system
http://9p.io/magic/webls?dir=/sources/contrib/nemo

[-- Attachment #2: Type: text/html, Size: 271 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [9fans] Plumbing - Files with spaces
  2015-07-22 13:29 ` dexen deVries
@ 2015-07-22 14:07   ` erik quanstrom
  0 siblings, 0 replies; 4+ messages in thread
From: erik quanstrom @ 2015-07-22 14:07 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

[-- Attachment #1: Type: text/html, Size: 649 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [9fans] Plumbing - Files with spaces
  2015-07-22 13:20 [9fans] Plumbing - Files with spaces Eduardo Alvarez
  2015-07-22 13:29 ` dexen deVries
@ 2015-07-22 15:13 ` Friedrich Psiorz
  1 sibling, 0 replies; 4+ messages in thread
From: Friedrich Psiorz @ 2015-07-22 15:13 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

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




^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2015-07-22 15:13 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-07-22 13:20 [9fans] Plumbing - Files with spaces Eduardo Alvarez
2015-07-22 13:29 ` dexen deVries
2015-07-22 14:07   ` erik quanstrom
2015-07-22 15:13 ` Friedrich Psiorz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).