From: Gorka Guardiola <paurea@lsub.org>
To: russcox@gmail.com, 9fans@cse.psu.edu
Subject: Re: [9fans] acme tags for shell scripts
Date: Thu, 14 Oct 2004 16:47:35 +0200 [thread overview]
Message-ID: <725ea6b28a715adbec4b126456613df6@plan9.escet.urjc.es> (raw)
In-Reply-To: <ee9e417a04101407397604c7e1@mail.gmail.com>
>> I was trying to access the tag of the current window on acme from a
>> shell script and found it impossible. The problem is that there is no
>> way to get back the id of the current window (the one the script is
>> run on) in the shell script in order to access to /dev/wsys/%d.
>
> cat /mnt/acme/$winid/tag works. Your solution may be cleaner,
> but the task isn't currently impossible.
Yes, I realized it when Forsyth said it. I thought this was impossible,
so I did this change. I wouldn't have done it if I knew the wsys (by the
way, is there any reference in the manual about it?).
Looking at it now, I seems cleaner as you said.
The problem here is that this mechanisms are not uniform. In rio, /dev/winid is
the current id of the window. In an script run in acme this is done
with $winid. In win (in acme) the dir is bound in /dev/acme. Wouldn't all this
have to be the same?.
G.
next prev parent reply other threads:[~2004-10-14 14:47 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-10-14 13:28 Gorka Guardiola
2004-10-14 14:39 ` Russ Cox
2004-10-14 14:47 ` Gorka Guardiola [this message]
2004-10-15 13:27 ` Russ Cox
2004-10-15 13:54 ` Gorka Guardiola
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=725ea6b28a715adbec4b126456613df6@plan9.escet.urjc.es \
--to=paurea@lsub.org \
--cc=9fans@cse.psu.edu \
--cc=russcox@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).