From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <725ea6b28a715adbec4b126456613df6@plan9.escet.urjc.es> To: russcox@gmail.com, 9fans@cse.psu.edu Subject: Re: [9fans] acme tags for shell scripts From: Gorka Guardiola Date: Thu, 14 Oct 2004 16:47:35 +0200 In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Cc: Topicbox-Message-UUID: ee3ef516-eacd-11e9-9e20-41e7f4b1d025 >> 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.