From mboxrd@z Thu Jan 1 00:00:00 1970 Mime-Version: 1.0 (Apple Message framework v619.2) In-Reply-To: <0393eb65eb223e5f9b91366aa91c2013@quintile.net> References: <0393eb65eb223e5f9b91366aa91c2013@quintile.net> Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: <82cf3e4cdd0f807a80cf7dc93c2a0236@ar.aichi-u.ac.jp> Content-Transfer-Encoding: 7bit From: arisawa@ar.aichi-u.ac.jp Date: Wed, 23 Feb 2005 09:36:00 +0900 To: Fans of the OS Plan 9 from Bell Labs <9fans@cse.psu.edu> Subject: [9fans] dosmnt Topicbox-Message-UUID: 5204a122-eace-11e9-9e20-41e7f4b1d025 Hello, dosmnt does not work correctly. because term% echo /dev/sd*/dos* /dev/sdC0/dos /dev/sdC0/dos /dev/sdD0/dos /dev/sdD0/dos current codes are: term% cat /bin/dosmnt #!/bin/rc rfork e if(! ~ $#* 2){ echo 'usage: dosmnt N mntpt' >[1=2] exit usage } x=(`{echo /dev/sd??/dos*}) if(test $#x -lt $1){ echo 'not that many dos disks' >[1=2] exit usage } if(! test -f /srv/dos) dossrv >/dev/null [2]/dev/null mount -c /srv/dos $2 $x($1) term% The fix is to replace last line mount -c /srv/dos $2 $x($1) to g=$x(1) for(f in $x) if(! ~ $f $g) g=($g $f) mount -c /srv/dos $2 $g($1) Kenji Arisawa