On Tue, Nov 21, 2000 at 06:33:17PM +0100, Goswin Brederlow wrote: <snip> > The check looks right but doesn't work: > > # grep '\</dev\>.*devfs' /proc/mounts > > # grep '/dev\>.*devfs' /proc/mounts > > # grep '\</dev.*devfs' /proc/mounts > > # grep '/dev.*devfs' /proc/mounts > none /dev devfs rw 0 0 > > # grep ' /dev .*devfs' /proc/mounts > none /dev devfs rw 0 0 > > # grep '/dev.*devfs' /proc/mounts | hexdump > %07.7_ 6f6e 656e 2f20 6564 2076 6564 6676 2073 > %07.7_ 7772 3020 3020 000a > %07.7_ > > You might want to check for " " instead of word start and end to > circumvent the problem.
Actually, / is not a word char, also, / tends to be special. grep '\/dev[\t ]*devfs' /proc/mounts Zephaniah E. Hull. > > MfG > Goswin > > PS: You might also check for existing devices when using devfs. I > don't have a /dev/tts/3, so theres no point giving me the > choise. Altough care must be taken to handle not yet loaded modules. I > might fill this as wishlist, since has nothing to do with this bug. Don't try to open, just test for existence. Zephaniah E. Hull. -- PGP EA5198D1-Zephaniah E. Hull <[EMAIL PROTECTED]>-GPG E65A7801 Keys available at http://whitestar.soark.net/~warp/public_keys. CCs of replies from mailing lists are encouraged. "Microsoft is a cross between the Borg and the Ferengi. Unfortunately, they use Borg to do their marketing and Ferengi to do their programming." -- Simon Slavin in asr
pgpR6A8Mlpgms.pgp
Description: PGP signature