* [9fans] Minor fix for the window command with -m and -hide options
@ 2002-10-10 5:56 Richard Powell
0 siblings, 0 replies; only message in thread
From: Richard Powell @ 2002-10-10 5:56 UTC (permalink / raw)
To: 9fans
Greetings,
Here is a minor change to the window script to handle the -m and -hide options together.
It might be worth noting in the man page that if -m is used it must be the first option.
Thanks,
Richard
diff -c window.org window
*** window.org Wed Oct 2 18:19:08 2002
--- window Wed Oct 2 18:19:16 2002
***************
*** 73,79 ****
{
if(mount $srv $dir 'new -pid '^`{cat /dev/ppid}^' '$"*){
bind -b $dir /dev
- echo -n `{basename $1} > /dev/label >[2] /dev/null
# toss geometry parameters to find command
while(~ $1 -*)
switch($1){
--- 73,78 ----
***************
*** 81,89 ****
--- 80,91 ----
shift 2
case -r
shift 5
+ case -hide
+ shift
}
if(~ $#* 0) cmd = rc
if not cmd = $*
+ echo -n `{basename $cmd(1)} > /dev/label >[2] /dev/null
exec $cmd < /dev/cons > /dev/cons >[2] /dev/cons
}
}&
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2002-10-10 5:56 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-10-10 5:56 [9fans] Minor fix for the window command with -m and -hide options Richard Powell
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).