>>>>> On Sat, 08 Jan 2005 14:48:45 +0200, Shaul Karl <[EMAIL PROTECTED]> said:
> The following patch should fix what looks to me broken: Does it only look broken, or do you have any p[roblems? > - [ -f /etc/exports ] && grep -q "^$pattern[[:space:]]" /etc/exports && return > - echo "$pattern $options" >> /etc/exports > + [ -f /etc/exports ] && ! grep -q "^$pattern[[:space:]]" /etc/exports && echo "$pattern $options" >> /etc/exports > + return > } > This patch: > 1. puts the return in a separate line. > 2. Negates grep's return value before using it in the list. I don't understand why this additional patch is needed. I never heard of any problems with these lines. -- regards Thomas -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]