#!/bin/bash

Julian Field MailScanner at ecs.soton.ac.uk
Wed Jan 11 14:48:14 GMT 2006


-----BEGIN PGP SIGNED MESSAGE-----

On 11 Jan 2006, at 14:20, Spicer, Kevin wrote:

> On Wed, 11 Jan 2006 04:10:51 +0000 Julian Field
> <mailscanner at ECS.SOTON.AC.UK> wrote:
>
>> I entirely agree with you. I will have to go through the scripts that
>
>> have this and try to check that they don't have any bash-isms that I
>> know of. The only one that springs to mind is
>> 	export VARIABLE=value
>> which I will need to change to
>> 	VARIABLE=value
>> 	export VARIABLE
>>
>> What else should I be looking for? I tend to write for whatever
>> version of sh happens to be on the system I'm writing on at the time.
>
>> Bad practice, I know :-(
>
> I always get bitten by
>
> if [ "X$something" == "something" ]; then
>
> which works fine on bash, but sh only wants a single =

Didn't know == would work on bash, so I'm probably safe on that one.  
There were only 2 or 3 offending scripts anyway.

I have done what people suggested, and have released 4.50.6 for you  
all to play with.

I'm running it on 1 production server so far, and it appears fine,  
and has much lower load average than 4.47 which it was running before.
- -- 
Julian Field
www.MailScanner.info
Buy the MailScanner book at www.MailScanner.info/store
PGP footprint: EE81 D763 3DB0 0BFD E1DC 7222 11F6 5947 1415 B654


-----BEGIN PGP SIGNATURE-----
Version: PGP Desktop 9.0.3 (Build 2932)

iQEVAwUBQ8Uasvw32o+k+q+hAQFFqgf+LifagjcLPqJFdabtze1PIO8TzfioPG9a
ZYq2MlsqbA9acYEOvr72xiLybBoP/KuPxsI093uidq/fgFd2mNMVG/2eaQekr2UI
2cTm65RokyKISU/j2IurhOx+1HQduG5jVfLVWLjNJR34/+JYZGfCTI/Gj+t3x97A
jjpOxQ3f7ZIrmQT+QtOps3HDOnL4+Uc/w0W8/dDiBqmsCNALmURSFqc+emIJ9QMq
QrE7YLHPN9+QHq8fPZeTIvpUHzVElCzTZqTJWwtji3zDw0XNHvbYS01U68ujUWLN
sotpWZt9nfxWNnfdpjMJiiZIXj9eyjlqHWPJXNu4MaRXKSBHlejqQQ==
=HgIt
-----END PGP SIGNATURE-----

-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

------------------------ MailScanner list ------------------------
To unsubscribe, email jiscmail at jiscmail.ac.uk with the words:
'leave mailscanner' in the body of the email.
Before posting, read the Wiki (http://wiki.mailscanner.info/) and
the archives (http://www.jiscmail.ac.uk/lists/mailscanner.html).

Support MailScanner development - buy the book off the website!



More information about the MailScanner mailing list