From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by nuthatch.gentoo.org with esmtp (Exim 4.54) id 1F3HTL-0007Bo-E8 for garchives@archives.gentoo.org; Sun, 29 Jan 2006 18:40:23 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.13.5/8.13.5) with SMTP id k0TIcjvW016933; Sun, 29 Jan 2006 18:38:45 GMT Received: from bullet.espersunited.com (adsl-64-149-52-102.dsl.tul2ok.sbcglobal.net [64.149.52.102]) by robin.gentoo.org (8.13.5/8.13.5) with ESMTP id k0TIYZab005696 for ; Sun, 29 Jan 2006 18:34:35 GMT Received: from camille.espersunited.com ([192.168.1.1]) by bullet.espersunited.com (8.13.4/8.13.4) with ESMTP id k0TIYYn3008597 for ; Sun, 29 Jan 2006 12:34:34 -0600 Subject: Re: [gentoo-user] OT - Question about new bash [SOLVED] From: Michael Sullivan To: gentoo-user@lists.gentoo.org In-Reply-To: <169ffc030601291005w318fac0fr@mail.gmail.com> References: <1138556593.10508.27.camel@camille.espersunited.com> <169ffc030601291005w318fac0fr@mail.gmail.com> Content-Type: text/plain Date: Sun, 29 Jan 2006 12:34:53 -0600 Message-Id: <1138559693.10508.29.camel@camille.espersunited.com> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@gentoo.org Reply-to: gentoo-user@lists.gentoo.org Mime-Version: 1.0 X-Mailer: Evolution 2.4.2.1 Content-Transfer-Encoding: 7bit X-Archives-Salt: 2a68cfa6-5e09-4f1e-b62b-a0cb70ce02f3 X-Archives-Hash: 8bb479ba72f175606c0536d0ab02b130 On Sun, 2006-01-29 at 18:05 +0000, znx wrote: > Hi, > > for x in *.JPG; do > if [ ! -e current/$x ]; then > > I can't see anything wrong with this in particular, one thing that > springs to mind is to quote the string that you are testing: > > for x in *.JPG; do > if [ ! -e "current/$x" ]; then > > Hope that helps > Yep, that worked! Thanks! Hmm, I wonder why it worked before? -- gentoo-user@gentoo.org mailing list