On Thu, 15 Feb 2001, Jonathan Wilson wrote: > if [ "$1" != *.src.rpm ] && [ "$1" != *.srpm ] I didn't notice the above line in my previous post. Unfortunatly, the file globing is expanding to multiple arguments. You will have to use a `case' statement or other trickery. Maybe like this: if [ ! -z "${1##*.src.rpm}" ] && [ ! -z "${1##*.srpm}" ] then . . . . else . . . fi -or- case "$1" in (*.src.rpm | *.srpm) . . . ;; (*) . . . ;; esac -- 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
- 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
- Re: [OT] help with bash script 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