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
- Re: cloning linux pc Corisen
- Re: cloning linux pc Lucio Nino Rossi
- Re: cloning linux pc Michael R. Jinks
- Help with failed dependency Wes Owen
- Re: Help with failed dependency Eric Clover
- Re: Help with failed dependency Edward Dekkers
- Re: Help with failed dependency RaghuNath L
- Re: cloning linux pc Bret Hughes
- Re: cloning linux pc Abe Asghar
- Re: [OT] help with bash script Jonathan Wilson
- bash: [: too many arguments WAS: Re: [OT] he... John H Darrah
- bash: [: too many arguments WAS: Re: [OT... Jonathan Wilson
- Re: bash: [: too many arguments WAS: Re:... Jonathan Wilson
- Re: bash: [: too many arguments WAS: Re:... John H Darrah
- Re: bash: [: too many arguments WAS: Re:... Jonathan Wilson
- Re: bash: [: too many arguments WAS: Re:... Harry Putnam
- Re: [OT] help with bash script John H Darrah
- Re: [OT] help with bash script Todd A. Jacobs
- Re: [OT] help with bash script John H Darrah
- Re: [OT] help with bash script John H Darrah
