Re: [9fans] plan 9 : any pager?

2018-10-04 Thread Rudolf Sykora
On Thu, 4 Oct 2018 at 09:22, Ethan Gardener wrote: > > On Wed, Oct 3, 2018, at 4:20 AM, Skip Tavakkolian wrote: > > Turn off the scroll in the rio window that the shell is running in, then > > cat the file. > > This is my preferred option too. Also works in 9term. I liked to play MUDs > this

Re: [9fans] APL for Plan 9?

2018-09-10 Thread Rudolf Sykora
On Fri, 7 Sep 2018 at 17:53, Xiao-Yong Jin wrote: > I would love to know what you did for OpenBSD. > I am stuck with the linux version on FreeBSD for now. > Do all the test pass on OpenBSD? Do all the 15!: actually work? > For Plan 9, we can just get rid of libedit and make jconsole a lot

Re: [9fans] APL for Plan 9?

2018-09-07 Thread Rudolf Sykora
Hello, On Thu, 6 Sep 2018 at 19:36, Richard Miller <9f...@hamnavoe.com> wrote: > > There's a Plan 9 port of J 3.02 in /n/sources/contrib/miller/j/8.j > > > > 386 executable only, as I don't have permission to share source, but I can > > compile for other $objtypes on request. > > I recall the

Re: [9fans] What's the fastest way to input command in Acme?

2018-05-10 Thread Rudolf Sykora
> In VIM, I can input ...comand, in Acme I have > to move cursor to command area and click, input command, press , > click middle mouse button on the highlighted command, is this > the fastest way to input command in Acme? Basically, I think so. I'd just add that 1) command can actually appear

Re: [9fans] simple rc problem in p9p (on OpenBSD)

2018-04-26 Thread Rudolf Sykora
On Thu, 26 Apr 2018 at 21:41, Costin Chirvasuta wrote: > I lot of the messages on this list end up being marked as spam. I > believe there was a previous discussion about this. Well, I did check my spam folder. (Actually all folders...) It hasn't been delivered at all...

Re: [9fans] simple rc problem in p9p (on OpenBSD)

2018-04-26 Thread Rudolf Sykora
On 26 April 2018 at 17:48, Benjamin Purcell wrote: > Since no one had any idea what you had in mind, here is stab in the > dark. Did you want > > % for(i in `{echo $w}) {echo $i; echo XXX} Yes. That was it. But basically this was already given in Teodoro Santoni's e-mail.

Re: [9fans] simple rc problem in p9p (on OpenBSD)

2018-04-26 Thread Rudolf Sykora
On 26 April 2018 at 17:20, dexen deVries wrote: > use a list. lists are created either by the parentheses: > > % w = ( A B C ) > % # note no space before the backslash > % wMultiline = (\ > X\ > Y\ > Z\ > ) As I wrote in another answer, the content of w is as if

Re: [9fans] simple rc problem in p9p (on OpenBSD)

2018-04-26 Thread Rudolf Sykora
On 26 April 2018 at 17:02, Teodoro Santoni wrote: > ; w='A > B > C' > ; we=`{echo $w} > ; for(i in $we) { echo 'arg '$i; } > arg A > arg B > arg C > ; for(i in $w) { echo 'arg'$i; } > argA > B > C > ; exit > > When enclosed in single quotes, the variable is, regardless of

Re: [9fans] simple rc problem in p9p (on OpenBSD)

2018-04-26 Thread Rudolf Sykora
On 26 April 2018 at 16:54, Lucio De Re wrote: > w=(A B C) > > ? 1) this is not an answer 2) the use of it all was that I wanted to send to print certain files, the list of which I got from ls followed by manual deletion (in 9term) of some... Newline separation is thus

[9fans] simple rc problem in p9p (on OpenBSD)

2018-04-26 Thread Rudolf Sykora
Hello I, using OpenBSD's p9p, see this % w='A B C' % echo $w A B C % for(i in $w) {echo $i; echo XXX} A B C XXX ie, w in for is taken as just one argument instead of 3. What can I do with it? I haven't modified ifs (it should be \n space and tab). (How can I check, say see the

Re: [9fans] Fwd: ubiquitous environment?

2018-03-08 Thread Rudolf Sykora
On 3 March 2018 at 20:27, Francisco J Ballesteros wrote: > Octopus would run on Plan 9, although we used inferno for (hosted) terminals, > and it used Op as the protocol (a descendant of 9p like everyone else), Ok. So does anybody use octopus these days? Why not? (Who wouldn't

[9fans] Fwd: ubiquitous environment?

2018-03-03 Thread Rudolf Sykora
Hello, I am not sure this email ever made it to the forum, hence I decided to ask once more... Thanks for any comments... -- Forwarded message -- From: Rudolf Sykora <rudolf.syk...@gmail.com> Date: 16 June 2016 at 10:30 Subject: ubiquitous environment? To: Fans of the OS

Re: [9fans] rio in p9p

2017-11-03 Thread Rudolf Sykora
Dear Mathieu, On 9 October 2017 at 19:35, Mathieu Lonjaret wrote: > Sure. each change is in a dedicated branch at > > https://github.com/mpl/plan9port > > They're all trivial, except for the sort by thread acme mail. if I have a fairly recent p9p, what is the minimum

Re: [9fans] rio in p9p

2017-10-10 Thread Rudolf Sykora
On 9 October 2017 at 19:35, Mathieu Lonjaret wrote: > whoops, apologies for the super late reply. I forget to check my 9fans > folder regularly :/ > > Sure. each change is in a dedicated branch at > > https://github.com/mpl/plan9port > thanks Ruda

[9fans] rio in p9p

2017-07-20 Thread Rudolf Sykora
Hello, I want to ask if anybody has made any changes to rio in p9p, so that -- it can either do or somehow ignore switching to fullscreen (e.g., now when I press the fullscreen button in a youtube video I have to close the browser (Firefox) because it becomes unresponsive) -- I can move tabs

Re: [9fans] Irc segmentation fault

2017-06-29 Thread Rudolf Sykora
On 29 June 2017 at 11:29, Nick Owens wrote: > you probably need to use gcc -O0 -g for that. Doesn't it matter that the program is normally built with 9c? Thanks Ruda

Re: [9fans] Irc segmentation fault

2017-06-29 Thread Rudolf Sykora
On 29 June 2017 at 09:39, Nick Owens wrote: > acid is next to impossible to use on unix systems. just run gdb with 'thread > apply all bt'.. should give you an idea of what's wrong. If I run Irc in gdb, I get (gdb) run irc.freenode.org Starting program:

Re: [9fans] Irc segmentation fault

2017-06-29 Thread Rudolf Sykora
> $ Irc irc.freenode.org > Segmentation fault Do I have to use acid to debug it, or is it possible to use the usual unix gdb to debug this on p9p? Thanks Ruda

[9fans] Irc segmentation fault

2017-06-27 Thread Rudolf Sykora
Hello, I am trying to use the Irc acme client in plan9port, the one from https://swtch.com/irc/ However, when I run it, it segfaults: $ Irc irc.freenode.org Segmentation fault Has anybody used this client successfully? (Or would you rather recommend something else?) Thanks Ruda

[9fans] 9atom, S-ATA hard disk not detected

2015-11-25 Thread Rudolf Sykora
Hello, when trying to install 9atom I get to to the point where I should presumably say that the installation should go to the hard disc, but the only option I see is the usb flash device from which I have run the installation itself. I do not see any sd... under /dev. It's a Samsung HD103Si

[9fans] 9atom boot, reset when rio starts

2015-11-18 Thread Rudolf Sykora
Hello, I tried to boot plan9, in the incarnations of 9front (on machine 1) and 9atom (on machine 1 and 2) but did not succeed in either case. The furthest I got was with 9atom. On machine 1 it booted (using amd64) as far as I could already see a few rio windows, but then it suddenly went into

Re: [9fans] 9atom boot, reset when rio starts

2015-11-18 Thread Rudolf Sykora
On 18 November 2015 at 16:28, wrote: > it works fine for me on machine 3. Of course, I myself have 2 other machines where it runs... What I meant was that when one just picks up a machine at random, one seems to regularly encounter a problem, regardless if one uses

Re: [9fans] p9p ssh-agent and unix keys

2015-09-18 Thread Rudolf Sykora
On 9 September 2015 at 17:55, Rudolf Sykora <rudolf.syk...@gmail.com> wrote: > Hello everyone, > > I have an ssh key, id_rsa, generated with the unix tools. > I want to have it put into factotum and use it via p9p ssh-agent. > I now the id_rsa key is ok, I can use it to get

[9fans] p9p ssh-agent and unix keys

2015-09-09 Thread Rudolf Sykora
Hello everyone, I have an ssh key, id_rsa, generated with the unix tools. I want to have it put into factotum and use it via p9p ssh-agent. I now the id_rsa key is ok, I can use it to get to the remote system. Now, I did this (in bash): ;killall ssh-agent ;killall factotum ;eval $(9 ssh-agent

Re: [9fans] acme search backwards

2015-09-03 Thread Rudolf Sykora
On 3 September 2015 at 16:14, erik quanstrom wrote: > somehow I thought that was going to be the response, but that's not really > true unless acme has been rewritten on the lower level kbd model. > > that model also introduces user space kbd control, so good luck using it

Re: [9fans] acme search backwards

2015-09-03 Thread Rudolf Sykora
On 3 September 2015 at 11:16, Mathieu Lonjaret > https://groups.google.com/d/msg/comp.os.plan9/Q6R9iuu0lE8/u3h-FUnXOmEJ Thanks for the link! I wonder, why is it that they claim that implementing the functionality of: 3b = search forward, shift+3b = search backward is not feasible on plan9...

[9fans] acme search backwards

2015-09-02 Thread Rudolf Sykora
Hi, by chance, hasn't somebody changed acme so that one can easily, say with a ctrl key, change the direction of the search done by the 3rd mouse button? I find it very missing. Thanks Ruda

Re: [9fans] listing windows for p9p acme

2015-09-02 Thread Rudolf Sykora
On 2 September 2015 at 11:54, Mathieu Lonjaret > I got annoyed at how, usually with many windows open, I sometimes struggle > to find where one of my windows is. yes. when there are many windows, the situation gets chaotic, that's my experience, too. Further, the heuristics of placing new

Re: [9fans] acme search backwards

2015-09-02 Thread Rudolf Sykora
On 2 September 2015 at 16:37, Alexander Kapshuk wrote: > On Wed, Sep 2, 2015 at 5:01 PM, wrote: >>> Also there was a discussion on 9fans about it with other >>> suggestions/solutions. >> >> :-/RE >> >> is what I remember Russ recommending,

Re: [9fans] p9p sed vs linux sed

2015-08-12 Thread Rudolf Sykora
On 12 August 2015 at 15:47, lu...@proxima.alt.za wrote: You can't write a file in vi that does not end in a newline. You, however, can do it pretty easily with cat. (Sam asks you if you mean it, acme just does it.) So, I vote that text handling utilities should deal with all lines in text

Re: [9fans] p9p sed vs linux sed

2015-08-12 Thread Rudolf Sykora
From the POSIX description (used here as some reference), when a line is entered in the pattern space, the trailing new line is discarded. When the pattern space is written to stdout it seems that implicitely the new line is restored---the POSIX description says that the input shall be a text

Re: [9fans] p9p sed vs linux sed

2015-08-12 Thread Rudolf Sykora
On 12 August 2015 at 09:48, Ingo Krabbe ikrabbe@gmail.com wrote: You mean perseus=; is your prompt? Strange. Yes. perseus=; is the prompt. Actually sed is a line based command and should add a newline, imho. I don't think it should add anything. For itself it should be able to count

Re: [9fans] p9p mouse problem

2015-04-23 Thread Rudolf Sykora
Hello, On 31 March 2015 at 15:37, Rudolf Sykora rudolf.syk...@gmail.com wrote: I now encounter a problem with my mouse in plan9port. Every now and then it happens that my left button starts to behave as the right button. What helps is pressing a ctrl key on the keyboard: immediately after

Re: [9fans] p9p mouse problem

2015-03-31 Thread Rudolf Sykora
Hi everybody, On 18 February 2015 at 11:14, Rudolf Sykora rudolf.syk...@gmail.com wrote: I now encounter a problem with my mouse in plan9port. Every now and then it happens that my left button starts to behave as the right button. What helps is pressing a ctrl key on the keyboard: immediately

[9fans] ssh handshake failed

2015-03-27 Thread Rudolf Sykora
Hello, trying to connect from 9atom via ssh (v2) to my linux machine I get: ssh: dial: handshake failed What should I check that might have gone wrong? (The machine is otherwise accessible from other systems via ssh.) Thank you Ruda

[9fans] vt and mouse

2015-03-03 Thread Rudolf Sykora
Hello, is it so that one can't use mouse when running 'vt' (I tried to run ssh within it.) Thanks Ruda

[9fans] p9p mouse problem

2015-02-18 Thread Rudolf Sykora
Hello, I now encounter a problem with my mouse in plan9port. Every now and then it happens that my left button starts to behave as the right button. What helps is pressing a ctrl key on the keyboard: immediately after that things are ok again for a while. Has anybody fought with this before? Any

Re: [9fans] adm user on plan9 raspberry pi

2015-02-04 Thread Rudolf Sykora
On 4 February 2015 at 10:52, Richard Miller 9f...@hamnavoe.com wrote: I need to access to /adm/timezone to change the timezone. How do I log as user adm ? To change /adm/timezone you only need to be part of group adm. If you're logged in (ie booted) as glenda, just add glenda temporarily

Re: [9fans] 9atom downtime

2015-01-27 Thread Rudolf Sykora
http://mirror.9grid.fr/ I wonder what the difference is between 9atom.iso.bz2 and +9atom.iso.bz2 And what is kernel.mkfs.bz2? Thanks Ruda On 27 January 2015 at 15:46, Rudolf Sykora rudolf.syk...@gmail.com wrote: Hi David, Erik, On 27 January 2015 at 15:22, erik quanstrom quans

Re: [9fans] 9atom downtime

2015-01-27 Thread Rudolf Sykora
Hi David, Erik, On 27 January 2015 at 15:22, erik quanstrom quans...@quanstro.net wrote: On Tue Jan 27 06:13:39 PST 2015, 0in...@gmail.com wrote: A mirror of the 9atom CD image is available on: http://mirror.9grid.fr/ good. So I may download and use. :) the usb image is the primary

Re: [9fans] 9atom downtime

2015-01-27 Thread Rudolf Sykora
Hi David, A mirror of the 9atom CD image is available on: http://mirror.9grid.fr/ I am starting to feel like an idiot again. What I can find there seems to have 0 bytes. (see the screenshot) What am I doing wrong? Thanks Ruda

Re: [9fans] 9atom downtime

2015-01-27 Thread Rudolf Sykora
On 27 January 2015 at 16:41, David du Colombier 0in...@gmail.com wrote: I am starting to feel like an idiot again. What I can find there seems to have 0 bytes. (see the screenshot) What am I doing wrong? These are the images from today, but the ftp.9atom.org server is currently down. You

Re: [9fans] 9atom downtime

2015-01-27 Thread Rudolf Sykora
On 27 January 2015 at 16:03, David du Colombier 0in...@gmail.com wrote: I wonder what the difference is between 9atom.iso.bz2 and +9atom.iso.bz2 I think one is more recent than the other. the one with + seems to be always (when it exists) smaller by about 2 MB ... Ruda

Re: [9fans] 9atom downtime

2015-01-26 Thread Rudolf Sykora
Hello, On 24 January 2015 at 20:48, erik quanstrom quans...@quanstro.net wrote: looks like a power even took out the motherboard. hopefully i can find some parts early next week. - erik does that mean I can't download 9atom now? (the web page www.9atom.org is up, but going to 386 iso

Re: [9fans] plan9port .XCompose suddenly doesn't work

2015-01-22 Thread Rudolf Sykora
those - press a This is different from the behaviour in xterm, where the compose key can be hold down during the step of shift+8. So at least it works somehow. Ruda On 21 January 2015 at 17:12, Rudolf Sykora rudolf.syk...@gmail.com wrote: Hello, until recently I happily used a generated

[9fans] plan9port .XCompose suddenly doesn't work

2015-01-21 Thread Rudolf Sykora
Hello, until recently I happily used a generated ~/.XCompose file on p9p (see http://swtch.com/plan9port/man/man7/keyboard.html) to be able to write various characters in a way similar to p9. But now something must have changed. I can use the composition in, say, xterm (it works), but when I

Re: [9fans] questions about 9atom and 9legacy; and their updates

2014-12-19 Thread Rudolf Sykora
On 19 December 2014 at 04:11, da Tyga cyberfo...@gmail.com wrote: You could also consider 9vx especially if you are tempted to try running under Qemu or some other virtualised environment. Although I'm only at the exploratory stage, I find 9vx more useful than 9front. Well, I'd really like to

Re: [9fans] questions about 9atom and 9legacy; and their updates

2014-12-19 Thread Rudolf Sykora
Thanks, David, for the answers. That said, now that Plan 9 is not as actively maintained as it used to be, 9legacy might move to his own full distribution. Are then 9legacy and 9atom too apart to somehow merge them? Ruda

[9fans] questions about 9atom and 9legacy; and their updates

2014-12-18 Thread Rudolf Sykora
Hello, I've been recently reconsidering employment of plan9. And (probably like many others) I find myself indecisive about whom to follow. It seems that the most conservative option is Bell Labs (BL). Then, still in sync, there is 9legacy. Slightly separate there is 9atom, and finally there is

Re: [9fans] advice? fossil+venti (p9), vbackup+venti (p9p) vs. some other means of backup

2014-12-14 Thread Rudolf Sykora
Dear David, Anthony, Thanks to both of you. I'll try to use some of your suggestions. Ruda On 11 December 2014 at 21:04, Anthony Sorace a...@9srv.net wrote: Does anybody rely on a backup scheme using, say, vbackup+venti on linux? Does it work well, or would you recomment other means of doing

[9fans] advice? fossil+venti (p9), vbackup+venti (p9p) vs. some other means of backup

2014-12-11 Thread Rudolf Sykora
Dear all, I'd like to ask for an advice/experience. Does anybody rely on a backup scheme using, say, vbackup+venti on linux? Does it work well, or would you recomment other means of doing a backup? I guess there are also people using fossil+venti on p9. Are those happy? I am looking for a

[9fans] rc shell script run by cron on linux

2014-11-08 Thread Rudolf Sykora
Hello, I tried to run a cron job on linux using an rc script and bumped into a problem. When the job tries to be run I get something like /usr/local/plan9/rcmain: rc (/home/sykora/plan9port/bin/ rc): .: can't open: No such file or directory (I don't know why it starts with /usr/local...; but it

Re: [9fans] rc shell script run by cron on linux

2014-11-08 Thread Rudolf Sykora
On 8 November 2014 14:27, Charles Forsyth charles.fors...@gmail.com wrote: On 8 November 2014 12:44, Rudolf Sykora rudolf.syk...@gmail.com wrote: Have anybody ever solved a problem like this? (What is the minimum I have to have in order to run rc script on linux?) Just a guess but rc

Re: [9fans] Setting up Mail in Acme on the Raspberry Pi.

2014-10-15 Thread Rudolf Sykora
Dear Anthony, On 14 October 2014 20:40, Anthony Sorace a...@9srv.net wrote: After that, I can run Mail box1 and Mail box2 in Acme, and both are updated as one would expect. Faces, which was started earlier and needs to know about specific mailbox names to monitor, is not. The message you

Re: [9fans] Setting up Mail in Acme on the Raspberry Pi.

2014-10-14 Thread Rudolf Sykora
Hello, On 14 October 2014 11:09, Steve Simon st...@quintile.net wrote: What features do you need that plan9 is missing (honest question)? Since I can't run a dedicated mail server and I want to be able to read mail from anywhere, I have to use imap/pop3 from some server I have no control over.

Re: [9fans] Setting up Mail in Acme on the Raspberry Pi.

2014-10-14 Thread Rudolf Sykora
On 14 October 2014 17:22, erik quanstrom quans...@quanstro.net wrote: -- Running imap with multiple mboxes (folders or whatever) did not work for me (only one of them was updated). tested with nupas, and it does work. the default folder seperator in upas is /, as one would expect, since

Re: [9fans] Many bugs in eqn(1)

2014-08-13 Thread Rudolf Sykora
Hello, I'm somewhat disappointed about the troff software in Plan9. Yes, that's understandable... It seems to me nobody actually uses the software heavily here. I did few initial tests with eqn(1) and in addition to the TAB problem I saw that the root sign line and large brackets are not

Re: [9fans] Many bugs in eqn(1)

2014-08-13 Thread Rudolf Sykora
Dear Carsten, first, I don't understand German (I am Czech), but I used google translate, hopefully getting the meaning. Second, it's generally better (unless it's really personal or highly technical) to keep the discussion within the mailing list, since then other people can also contribute; I

Re: [9fans] Many bugs in eqn(1)

2014-08-13 Thread Rudolf Sykora
On 13 August 2014 12:57, Carsten Kunze carsten.ku...@arcor.de wrote: Since nobody seems to use troff on P9 I regarded it as off-topic. The traffic is low enough to discuss any matter related to p9(p) here, I believe. And it can be used as a back-reference in the future.

Re: [9fans] Many bugs in eqn(1)

2014-08-13 Thread Rudolf Sykora
On 13 August 2014 14:16, Carsten Kunze carsten.ku...@arcor.de wrote: http://9fans.net/archive/?q=sykora+eqngo=Grep I can't believe that TeX should not produce better results, but thats really OT... I don't understand what you mean. I refer to http://9fans.net/archive/2011/12/113. I

[9fans] chess?

2014-01-05 Thread Rudolf Sykora
Hello, perhaps it's there but I can't find it... Is there a chess game on plan9? Thanks Ruda

Re: [9fans] secstore in p9p, how to use well

2014-01-05 Thread Rudolf Sykora
so nobody uses secstored+factotum+ssh-agent on linux with p9p like I do? Thanks! Ruda On 19 December 2013 17:22, Rudolf Sykora rudolf.syk...@gmail.com wrote: Hello everyone, already for some time I've been using secstored+factotum+ssh-agent on linux with p9p. The machine, call it 1, runs

Re: [9fans] chess?

2014-01-05 Thread Rudolf Sykora
On 5 January 2014 12:27, Conor Williams conor.willi...@gmail.com wrote: term%9fs sources term% cd /n/sources/contrib term% du -a . | grep chess Thanks, this is possibly a way, but, at least in my case, this takes ages... (Say it can run for 45 mins; maybe much more; I do not know the true

Re: [9fans] chess?

2014-01-05 Thread Rudolf Sykora
On 5 January 2014 14:12, ste...@kamalatta.dyndns.org wrote: It runs much faster if you search in the lsr index file: % 9fs sources % cd /n/sources % time grep chess lsr ./contrib/steve/root/sys/src/cmd/mkmk/9port/gnu/chess 755 1229510622 697 ./plan9/sys/src/cmd/gs/examples/chess.ps 664

Re: [9fans] chess?

2014-01-05 Thread Rudolf Sykora
On 5 January 2014 15:36, erik quanstrom quans...@quanstro.net wrote: Thanks, this is possibly a way, but, at least in my case, this takes ages... (Say it can run for 45 mins; maybe much more; I do not know the true reason why, but I intuitively suspect the protocol.) Therefore I asked for a

Re: [9fans] chess?

2014-01-05 Thread Rudolf Sykora
On 5 January 2014 14:12, ste...@kamalatta.dyndns.org wrote: % 9fs sources % cd /n/sources % time grep chess lsr ./contrib/steve/root/sys/src/cmd/mkmk/9port/gnu/chess 755 1229510622 697 ./plan9/sys/src/cmd/gs/examples/chess.ps 664 1137452689 61791 0.58u 0.18s 315.60r grep chess lsr So

[9fans] secstore in p9p, how to use well

2013-12-19 Thread Rudolf Sykora
Hello everyone, already for some time I've been using secstored+factotum+ssh-agent on linux with p9p. The machine, call it 1, runs basically all the time and let's presume I am logged on it all the time, too. The problem/inconvenience I've had is when I connect to this machine via ssh and want to

Re: [9fans] mk time-check/slice issue

2013-12-19 Thread Rudolf Sykora
Hello, On 19 December 2013 20:22, Blake McBride bl...@mcbride.name wrote: Agreed. I enjoy reasoned debate. I don't enjoy being told the reason is because that's the way we do it. That is not reasoned debate. It is club support. I believe, from reading this mailing list for some time, you

Re: [9fans] acme/sam language question

2013-11-06 Thread Rudolf Sykora
On 31 October 2013 20:24, Rudolf Sykora rudolf.syk...@gmail.com wrote: On 31 October 2013 16:49, Friedrich Psiorz f.psi...@gmx.de wrote: It works for me, but I found another inconsistency. I tried it on p9p and 9vx, both in acme and sam. /A/+#0;/B/-#0 g/CC/ s/CC/DD/g p Well. If I use

Re: [9fans] acme/sam language question

2013-10-30 Thread Rudolf Sykora
On 29 October 2013 17:56, Friedrich Psiorz f.psi...@gmx.de wrote: this should do the trick /A/+#0;/B/-#0 g/CC/ s/CC/DD/g p Thanks for the suggestion, the g construct didn't come to my mind. However, it doesn't work for me: again, if CC is there, it works; if it's not, then the final dot only

[9fans] acme/sam language question

2013-10-29 Thread Rudolf Sykora
Hello, how can I set a dot from after A to before B, then make a global substitution, within thus set dot, of CC to DD and print the resulting text? I.e., if there isn't any CC between A and B, just print what's between A and B, if there is, change it to DD and print all between A and B. I have

Re: [9fans] acme: send dot to the stdin of a more complicated command

2013-08-28 Thread Rudolf Sykora
Hello, I tried to modify Russ' script below to be usable on p9p. I came up with #!/usr/local/plan9/bin/rc if(! ~ $#* 1) { echo 'usage: Run title' [1=2] exit 1 } id=`{awk -v 'pat='$1 '$6 ~ pat {print $1}' {9p read acme/index}} if(~ $#id 0) {

Re: [9fans] acme: send dot to the stdin of a more complicated command

2013-08-28 Thread Rudolf Sykora
On 28 August 2013 14:13, dexen deVries dexen.devr...@gmail.com wrote: your selection lacks the final LF to make Rc happy ;-) a quick and dirty hack would be to always append LF: exec /usr/local/plan9/bin/rc {9p read acme/$id/rdsel;echo;} tested with: echo foo bar rc {9p read

Re: [9fans] anchors broken in the g command in sam on p9p?

2013-08-22 Thread Rudolf Sykora
On 21 August 2013 19:19, smi...@icebubble.org wrote: Rob Pike robp...@gmail.com writes: OK. How does one match the start/end of dot in a g// or v// regexp? ... seems like a good question to me Steve Simon in his Sam command reference card also uses ^ and $ for his TODAY example, so this

Re: [9fans] anchors broken in the g command in sam on p9p?

2013-08-21 Thread Rudolf Sykora
On 21 August 2013 07:11, smi...@icebubble.org wrote: Maybe someone here can help me make sense of this simple sam session: ,c this is a file, one of many files with singular and/or plurals . ,y/ / g/.+s$/ p plurals I would expect that to have responded with thisfilesplurals. ,y/ /

Re: [9fans] Ligatures in Plan 9 troff

2013-07-20 Thread Rudolf Sykora
Hello, On 18 July 2013 16:18, benjamin.purcell benjamin.purc...@zoho.com wrote: when I attempt to convert the troff output with dpost. Does anyone know how to get ligatures using Plan 9 troff? I also have been unable to typeset ligatures. I think I once asked the same question here, with no

Re: [9fans] Duff's rc paper: Why awk?

2013-06-11 Thread Rudolf Sykora
plan 9 sed reads a second line before quitting (note the def in the example below); sed does not work. Is there any good reason for this difference between plan9 and gnu behaviour? Thanks! Ruda

Re: [9fans] Step by step Acme/Mail with plan9ports in Mac OS X Setup

2013-06-11 Thread Rudolf Sykora
On 11 June 2013 18:09, Brian Vito brian.v...@gmail.com wrote: Has anyone prepared a step-by-step guide to setting up plan9port's Acme Mail in Mac OS X? Everything I can find in the archives is incomplete in some way and I haven't been able to figure out how to set things up. I am using lavabit

Re: [9fans] problem with a here document in rc

2013-05-06 Thread Rudolf Sykora
Hello, so I repeat my question. While this is possible in bash: ;cat aBash for i in 1 2 3 do cat ! $i ! done ; ;bash aBash 1 2 3 ; it doesn't work in rc: ;cat aRc for(i in 1 2 3) { cat ! } $i ! ; ;rc aRc ; Is this as it should be? Can the rc example be modified --- still using a

[9fans] problem with a here document in rc

2013-05-02 Thread Rudolf Sykora
Hello, I have a problem with writing correctly a here document in rc. I wrote, say: s = (1 2) for(i in $s) { mkdir -p $i cp POSCAR $i @{ cd $i ed POSCAR EOF [2]/dev/null } } 2c $i . w q EOF and I wanted to have the 2nd line of

Re: [9fans] problem with a here document in rc

2013-05-02 Thread Rudolf Sykora
On 2 May 2013 17:24, erik quanstrom quans...@quanstro.net wrote: i usually solve this problem like this for(i in 1 2){ mkdir -p $i || fatal cp POSCAR $i || fatal @{ { echo 2c

Re: [9fans] mount p9 sources in p9p

2013-04-21 Thread Rudolf Sykora
On 20 April 2013 14:48, erik quanstrom quans...@quanstro.net wrote: can I do something like '9fs sources' but in p9p so that I could read p9 (not port) sources in linux? I'd guess it is possible, but I don't know how... srv -n sources.cs.bell-labs.com sources 9p ls sources |

Re: [9fans] mount p9 sources in p9p

2013-04-21 Thread Rudolf Sykora
On 20 April 2013 19:11, David du Colombier 0in...@gmail.com wrote: Using 9pfuse: 9pfuse sources.cs.bell-labs.com /n/sources Using v9fs: mount -t 9p 204.178.31.11 /n/sources Both ways work for me, however, it is, for some reason, very slow. (I wait several seconds before 'ls' shows its

[9fans] mount p9 sources in p9p

2013-04-20 Thread Rudolf Sykora
Hello, can I do something like '9fs sources' but in p9p so that I could read p9 (not port) sources in linux? I'd guess it is possible, but I don't know how... Thanks! Ruda

[9fans] p9p mailfs returns warnings

2013-04-12 Thread rudolf . sykora
Hello everyone, I have been using the acme Mail client in p9p for some time. It works rather well for my needs. I use it with an imap access to my gmail account. However, when I run the command mailfs -t imap.gmail.com which is issued before running acme itself and, afaik, provides the real

Re: [9fans] documentation suggestion

2013-04-04 Thread Rudolf Sykora
On 4 April 2013 10:49, Mark van Atten vanattenm...@gmail.com wrote: Would it be possible to add an option to p9p acme so that its tags will always remain one line, i.e., show Plan 9's acme behaviour? I don't understand this question. In p9p you have an option to use multiline tag, if you press

Re: [9fans] documentation suggestion

2013-04-04 Thread Rudolf Sykora
On 4 April 2013 17:46, erik quanstrom quans...@labs.coraid.com wrote: On Thu Apr 4 11:25:12 EDT 2013, rudolf.syk...@gmail.com wrote: On 4 April 2013 10:49, Mark van Atten vanattenm...@gmail.com wrote: Would it be possible to add an option to p9p acme so that its tags will always remain one

Re: [9fans] documentation suggestion

2013-04-04 Thread Rudolf Sykora
On 4 April 2013 18:05, Mark van Atten vanattenm...@gmail.com wrote: If I click 'New' to open a window in a column, go into its tag, and start typing after `Look', the tag becomes multiline and wraps my text when I hit the border. Yes. The wrapping mode seems to be the default. However: If you,

Re: [9fans] documentation suggestion

2013-04-01 Thread Rudolf Sykora
Hello, On 1 April 2013 10:24, Peter A. Cejchan tyap...@gmail.com wrote: however, in native Plan9, scrolling goes too fast for multi-line tagline :-) [yes, I know that I should keep commands short, but, e.g., Edit requires newline between commands :(((] I found the way how it is in p9p

Re: [9fans] Acme button 1 working like button 3

2013-03-20 Thread Rudolf Sykora
Hello On 19 March 2013 19:59, Patrick Higgins patrick.allen.higg...@gmail.com wrote: Yes, that was it. My alt key had gotten stuck. so what must I do to circumvent the problem? I reckon I should issue some hg command to put some files (from 65969f85ee6c revision?), presumably just

Re: [9fans] Acme button 1 working like button 3

2013-03-20 Thread Rudolf Sykora
Hello, On 20 March 2013 16:32, Ruslan Khusnullin ruslan.khusnul...@gmail.com wrote: For now you can make a clean clone of specific revision previous to the change: cd /usr/local rm -rf plan9 hg clone -r e9cdfa957952 https://bitbucket.org/rsc/plan9port plan9 Or if you want just to checkout

[9fans] new mail in acme Mail, only the last highlighted

2013-03-18 Thread rudolf . sykora
Hello 9fans, I've been using Mail program for acme to read my Google mail via imaps. When a new e-mail arrives, Mail highlighs the row (it is selected). However, at least for me, only the last e-mail is highlighted, even when more than one e-mail have come. Is it only my problem? Has anyone

[9fans] p9p ssh-agent for password auth?

2013-03-08 Thread Rudolf Sykora
Hello everyone, can plan9port ssh-agent be used to mediate connection to a ssh server and use a password, or one can only use it in connection with RSA and DSA keys? I tried to add a line like this key proto=pass role=client server=kfes-69.karlov.mff.cuni.cz service=ssh user=sykora

Re: [9fans] p9p ssh-agent for password auth?

2013-03-08 Thread Rudolf Sykora
Hello, On 8 March 2013 16:00, Rudolf Sykora rudolf.syk...@gmail.com wrote: Hello everyone, can plan9port ssh-agent be used to mediate connection to a ssh server and use a password, or one can only use it in connection with RSA and DSA keys? I now see that 9 ssh-agent is really only to deal

Re: [9fans] ctags or sth else with acme?

2013-01-18 Thread Rudolf Sykora
On 17 January 2013 22:01, Anthony Sorace a...@9srv.net wrote: I ported Exuberant Ctags and added an output format suitable for acme. I'm not at a real computer just now, but I announced it on the list. I believe it's in my contrib directory, /n/sources/contrib/anothy. would it be difficult

[9fans] using acid

2013-01-18 Thread Rudolf Sykora
Hello, is there any document, besides the two papers by P. Winterbottom (Acid Manual, Acid: A Debugger Built From a Language) showing a practical use of acid? I wonder if I could use it for watching acme during its running. [I wanted to change acme so that it could understand environment

[9fans] ctags or sth else with acme?

2013-01-17 Thread Rudolf Sykora
Hello, I'd like to know what you use for orientation in a code when running acme. Is the 'g' command sufficient for you, or you use some form of ctags? Thank you! Ruda

Re: [9fans] How to do this with [acme | sam | sed ] ?

2013-01-11 Thread Rudolf Sykora
On 11 January 2013 12:19, Peter A. Cejchan tyap...@gmail.com wrote: # remove outermost pair of braces: abcd(x+(y-z))efgh -- abcdx+(y-z)efgh This, I believe, can't be achieved only with regexps. I'd write a small external program and use it as a filter. # prefix to postfix operator: ++i --

Re: [9fans] How to do this with [acme | sam | sed ] ?

2013-01-11 Thread Rudolf Sykora
On 11 January 2013 15:24, erik quanstrom quans...@quanstro.net wrote: # remove outermost pair of braces: abcd(x+(y-z))efgh -- abcdx+(y-z)efgh [ no idea :-( ] this is made simple since * is greedy: Edit s:\((.*)\):\1:g Sure, this (the greediness) basically already stands behind

Re: [9fans] p9p: .suspect added to mail attachments

2013-01-09 Thread Rudolf Sykora
Hello, On 8 January 2013 16:27, erik quanstrom quans...@quanstro.net wrote: vf is no longer useful. on plan 9 /mail/lib/qmail calls it. i bet there's similar in p9p and it could be replaced with cat. - erik I tried to locate the place where 'vf' is called (on p9p) with the commands: cd

  1   2   3   4   5   >