From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 Date: Wed, 22 Jul 2015 10:20:48 -0300 Message-ID: From: Eduardo Alvarez To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Content-Type: multipart/alternative; boundary=001a113f19ba96de16051b76a38c Subject: [9fans] Plumbing - Files with spaces Topicbox-Message-UUID: 616883b2-ead9-11e9-9d60-3106f5b1d025 --001a113f19ba96de16051b76a38c Content-Type: text/plain; charset=UTF-8 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 --001a113f19ba96de16051b76a38c Content-Type: text/html; charset=UTF-8
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
--001a113f19ba96de16051b76a38c-- From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 In-Reply-To: References: Date: Wed, 22 Jul 2015 15:29:22 +0200 Message-ID: From: dexen deVries To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Content-Type: multipart/alternative; boundary=089e01183bbe45be8e051b76c2fd Subject: Re: [9fans] Plumbing - Files with spaces Topicbox-Message-UUID: 616c587a-ead9-11e9-9d60-3106f5b1d025 --089e01183bbe45be8e051b76c2fd Content-Type: text/plain; charset=UTF-8 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 --089e01183bbe45be8e051b76c2fd Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
there is trfs(4), not sure if applicable to plan9port.
= trfs - =C2=A0translate spaces and other runes in file names file system
= http://9p.= io/magic/webls?dir=3D/sources/contrib/nemo
--089e01183bbe45be8e051b76c2fd-- From mboxrd@z Thu Jan 1 00:00:00 1970 Date: Wed, 22 Jul 2015 07:07:32 -0700 Message-ID: <3b68d947-a9d8-40d8-a6d4-8ba0c196a872@email.android.com> In-Reply-To: From: erik quanstrom To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> MIME-Version: 1.0 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: base64 Subject: Re: [9fans] Plumbing - Files with spaces Topicbox-Message-UUID: 616ff7dc-ead9-11e9-9d60-3106f5b1d025 PHAgZGlyPSJsdHIiPmRvIHlvdSBtZWFuIGZyb2dzIG5vdCBydW5lcz8mbmJzcDsgdGhlIG5vcm1h bCBydWxlcyBhcmUgb2sgd2l0aCBtb3N0IHJ1bmVzLjwvcD4KPHAgZGlyPSJsdHIiPi0gZXJpazxi cj4KPC9wPgo8ZGl2IGNsYXNzPSJnbWFpbF9xdW90ZSI+T24gSnVsIDIyLCAyMDE1IDY6MjkgQU0s IGRleGVuIGRlVnJpZXMgJmx0O2RleGVuLmRldnJpZXNAZ21haWwuY29tJmd0OyB3cm90ZTo8YnIg dHlwZT0nYXR0cmlidXRpb24nPjxibG9ja3F1b3RlIGNsYXNzPSJxdW90ZSIgc3R5bGU9Im1hcmdp bjowIDAgMCAuOGV4O2JvcmRlci1sZWZ0OjFweCAjY2NjIHNvbGlkO3BhZGRpbmctbGVmdDoxZXgi PjxkaXYgZGlyPSJsdHIiPnRoZXJlIGlzIHRyZnMoNCksIG5vdCBzdXJlIGlmIGFwcGxpY2FibGUg dG8gcGxhbjlwb3J0LjxiciAvPnRyZnMgLSDCoHRyYW5zbGF0ZSBzcGFjZXMgYW5kIG90aGVyIHJ1 bmVzIGluIGZpbGUgbmFtZXMgZmlsZSBzeXN0ZW08YnIgLz48YSBocmVmPSJodHRwOi8vOXAuaW8v bWFnaWMvd2VibHM/ZGlyJiM2MTsvc291cmNlcy9jb250cmliL25lbW8iPmh0dHA6Ly85cC5pby9t YWdpYy93ZWJscz9kaXImIzYxOy9zb3VyY2VzL2NvbnRyaWIvbmVtbzwvYT48YnIgLz48L2Rpdj4N Cg0KPC9ibG9ja3F1b3RlPjwvZGl2Pg== From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <55AFB307.6060706@gmx.de> Date: Wed, 22 Jul 2015 17:13:11 +0200 From: Friedrich Psiorz User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Icedove/31.7.0 MIME-Version: 1.0 To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> References: In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [9fans] Plumbing - Files with spaces Topicbox-Message-UUID: 6177eea6-ead9-11e9-9d60-3106f5b1d025 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=C3=82 =C3=82 =C3=82 is=C3=82 =C3=82 =C3=82 text data=C3=82 =C3=82 =C3=82 matches=C3=82 =C3=82 =C3=82 '[a-zA-Z=C3=82=C2=A1= -=C3=AF=C2=BF=C2=BF0-9_\-./]+' data=C3=82 =C3=82 =C3=82 matches=C3=82 =C3=82 =C3=82=20 '([a-zA-Z=C3=82=C2=A1-=C3=AF=C2=BF=C2=BF0-9_\-./]+)\.(ps|PS|eps|EPS|pdf|P= DF|dvi|DVI)' arg=C3=82 =C3=82 =C3=82 isfile=C3=82 =C3=82 =C3=82 $0 plumb=C3=82 =C3=82 =C3=82 to=C3=82 =C3=82 =C3=82 postscript plumb=C3=82 =C3=82 =C3=82 start=C3=82 =C3=82 =C3=82 9 page $file type=C3=82 =C3=82 =C3=82 is=C3=82 =C3=82 =C3=82 text data=C3=82 =C3=82 =C3=82 matches=C3=82 =C3=82 =C3=82 '[a-zA-Z=C3=82=C2=A1= -=C3=AF=C2=BF=C2=BF0-9_\-./ ]+' data=C3=82 =C3=82 =C3=82 matches=C3=82 =C3=82 =C3=82 '([a-zA-Z=C3=82=C2= =A1-=C3=AF=C2=BF=C2=BF0-9_\-./ ]+)\.(ps|PS|eps|EPS|pdf|PDF|dvi|DVI)' arg=C3=82 =C3=82 =C3=82 isfile=C3=82 =C3=82 =C3=82 $0 plumb=C3=82 =C3=82 =C3=82 to=C3=82 =C3=82 =C3=82 postscript plumb=C3=82 =C3=82 =C3=82 start=C3=82 =C3=82 =C3=82 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