9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] p9p acme will not open a directory
@ 2008-04-17 10:53 Bengt Kleberg
  2008-04-17 12:00 ` erik quanstrom
  2008-04-17 12:05 ` Russ Cox
  0 siblings, 2 replies; 3+ messages in thread
From: Bengt Kleberg @ 2008-04-17 10:53 UTC (permalink / raw)
  To: 9fans

Greetings,

Is it a know problem for p9p acme on Linux that it will not open (B3) a
directory with a name like this:
ct_run.ct@seasc0642.2008-04-15_14.10.00

I can get around the problem by opening a win and cd into the directory
so it is not a great problem.


bengt
-- 
Those were the days...
   EPO guidelines 1978: "If the contribution to the known art resides
   solely in a computer program then the subject matter is not
   patentable in whatever manner it may be presented in the claims."


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

* Re: [9fans] p9p acme will not open a directory
  2008-04-17 10:53 [9fans] p9p acme will not open a directory Bengt Kleberg
@ 2008-04-17 12:00 ` erik quanstrom
  2008-04-17 12:05 ` Russ Cox
  1 sibling, 0 replies; 3+ messages in thread
From: erik quanstrom @ 2008-04-17 12:00 UTC (permalink / raw)
  To: 9fans

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset="UTF-8", Size: 745 bytes --]

> Is it a know problem for p9p acme on Linux that it will not open (B3) a
> directory with a name like this:
> ct_run.ct@seasc0642.2008-04-15_14.10.00

it's not acme's fault.

b3 send the selected text to the plumber.  if you are using
the default rules
	$PLAN9/lib/fileaddr	p9p
	/sys/lib/plumb/fileaddr	plan9
define
	addrelem='((#?[0-9]+)|(/[A-Za-z0-9_\^]+/?)|[.$])'
	addr=:($addrelem([,;+\-]$addrelem)*)
(@ doesn't match) and then plumb/basic has this rule for files
	type is text
	data matches '([.a-zA-Z¡-￿0-9_/\-]*[a-zA-Z¡-￿0-9_/\-])('$addr')?'
	arg isfile	$1
	data set	$file
	attr add	addr=$3
	plumb to edit
	plumb client window $editor
but your file doesn't match, so it isn't plumbed as a file.

- erik



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

* Re: [9fans] p9p acme will not open a directory
  2008-04-17 10:53 [9fans] p9p acme will not open a directory Bengt Kleberg
  2008-04-17 12:00 ` erik quanstrom
@ 2008-04-17 12:05 ` Russ Cox
  1 sibling, 0 replies; 3+ messages in thread
From: Russ Cox @ 2008-04-17 12:05 UTC (permalink / raw)
  To: 9fans

> ct_run.ct@seasc0642.2008-04-15_14.10.00

You can open it with New or B.

By default, right-clicking a string like that tries
to send an email.  The rules are in $HOME/lib/plumbing
(or /usr/local/plan9/plumb/initial.plumbing if that
doesn't exist) if you want to customize them.

It's not trivial to fix the plumbing rules, because
opening directories in acme depends on directories
not matching *any* plumbing rules.

Russ



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

end of thread, other threads:[~2008-04-17 12:05 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-04-17 10:53 [9fans] p9p acme will not open a directory Bengt Kleberg
2008-04-17 12:00 ` erik quanstrom
2008-04-17 12:05 ` Russ Cox

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).