4.12-2 Solaris buglet

Julian Field mailscanner at ecs.soton.ac.uk
Mon Feb 3 15:03:37 GMT 2003

Any comments from anyone else on the portability of "uname -s"?

At 14:53 03/02/2003, you wrote:
>    I upgraded from 4.11-1 to 4.12-2 today, Solaris 8, and got
>complaints from my startup script:
>/bin/fgrep: illegal option -- q
>I dug around and found that bin/check_mailscanner has a define at
>the top of FGREP=/bin/fgrep.  Then a few lines down, the script
>if $UNAME | $FGREP -q "SunOS" ; then
>which causes the complaints.  How about just a test against "uname -s"
>UNAME=`/bin/uname -s`
>if [ $UNAME = "SunOS" ]; then
>My quick fix to the problem was to change the definition of
>FGREP to use /usr/local/bin/fgrep, the GNU version that supports -q.
>Jeff A. Earickson, Ph.D
>Senior UNIX Sysadmin and Email Guru
>Information Technology Services
>Colby College, 4214 Mayflower Hill,
>Waterville ME, 04901-8842
>phone: 207-872-3659 (fax = 3076)

Julian Field
MailScanner thanks transtec Computers for their support

More information about the MailScanner mailing list