On Thu, 15 Feb 2001, Jonathan Wilson wrote:

> /root/Scripts/srpm_arch_tester.sh: [: too many arguments
> Terminated
> 
> 
> #!/bin/bash
> #srpm_arch_tester.sh
> 
> trap 'kill 0' 0 1 2 3
> 
> if [ -z $1 ]
> then

Quote your variables with double quotes like the
following:

        if [ -z "$1" ]
        then
                .
                .
                .
        fi

This will prevent "word splitting" after substitution.


-- 
John Darrah (u05192)    | Dept: N/C Programming
Giddens Industries      | Ph: (425) 353-0405 #229
PO box 3190             | Ph: (206) 767-4212 #229
Everett  WA    98203    | Fx: (206) 764-9639



_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to