9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* Re: [9fans] termrc changes
@ 2006-11-29  9:19 Fco. J. Ballesteros
  2006-11-29 18:47 ` geoff
  0 siblings, 1 reply; 25+ messages in thread
From: Fco. J. Ballesteros @ 2006-11-29  9:19 UTC (permalink / raw)
  To: 9fans

In any case, the machine can freeze once you
start using the swap area. So, I wouldn't say it is important
to choose a big or a small swap partition.


:  From: lucio@proxima.alt.za
:  Date: Wed, 29 Nov 2006 06:43:41 +0200
:  To: 9fans@cse.psu.edu
:  Reply-To: lucio@proxima.alt.za 9fans@cse.psu.edu
:  Subject: Re: [9fans] termrc changes
:
:  > The new termrc avoids using test when looking for swap partitions.
:
:  I tend to like to slip a "sort -nr" into the fry, it allows me to pick
:  the largest swap partition when I have multiple disks.  Not
:  necessarily what everyone may want, of course:
:
:  swp=`{ls -s /dev/sd*/swap | sort -nr | sed 1q | awk '{print $2}'}
:
:  ++L


^ permalink raw reply	[flat|nested] 25+ messages in thread
* [9fans] termrc changes
@ 2006-11-28 17:35 Joel Salomon
  2006-11-28 19:37 ` geoff
  0 siblings, 1 reply; 25+ messages in thread
From: Joel Salomon @ 2006-11-28 17:35 UTC (permalink / raw)
  To: 9fans

What is the effective change made in termrc between the old version:
	disk=''
	if(test -f /dev/sd*/swap)
		disk=`{ls /dev/sd*/swap >[2]/dev/null | sed 1q | sed 's!swap$!!'}
	if(! ~ $disk '') {
		swap $disk^swap >/dev/null >[2=1]
		dossrv
		c:
	}
and the new one:
	# start up local swapping, mount dos fat fs
	disk=`{ls /dev/sd*/swap >[2]/dev/null}
	if (! ~ $#disk 0) {
		swap $disk(1) >/dev/null >[2=1]
		dossrv
		c:
	}
	rm /env/disk
is it just an elimination of ‘test’s or something more substantial?

--Joel



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

end of thread, other threads:[~2006-12-01  3:15 UTC | newest]

Thread overview: 25+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-11-29  9:19 [9fans] termrc changes Fco. J. Ballesteros
2006-11-29 18:47 ` geoff
2006-11-29 18:59   ` Francisco J Ballesteros
2006-11-29 20:08     ` Charles Forsyth
2006-12-01  1:19   ` John Floren
2006-12-01  1:38     ` geoff
2006-12-01  2:09       ` Bruce Ellis
2006-12-01  3:11         ` John Floren
2006-12-01  3:15           ` Bruce Ellis
  -- strict thread matches above, loose matches on Subject: below --
2006-11-28 17:35 Joel Salomon
2006-11-28 19:37 ` geoff
2006-11-28 20:11   ` Richard Miller
2006-11-29  4:43   ` Lucio De Re
2006-11-29 14:54     ` ron minnich
2006-11-29 16:39       ` Lucio De Re
2006-11-29 16:40       ` Russ Cox
2006-11-29 16:50         ` ron minnich
2006-11-30  0:37           ` erik quanstrom
2006-11-30  1:15             ` Martin Neubauer
2006-11-30  0:29       ` erik quanstrom
2006-11-30  0:34         ` ron minnich
2006-11-29 20:40     ` Georg Lehner
2006-11-30  4:34       ` Lucio De Re
2006-11-30  4:35         ` geoff
2006-11-30  4:58           ` Lucio De Re

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