Gentoo Archives: gentoo-user

From: Michael Sullivan <michael@××××××××××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] OT - Question about new bash [SOLVED]
Date: Sun, 29 Jan 2006 18:40:23
Message-Id: 1138559693.10508.29.camel@camille.espersunited.com
In Reply to: Re: [gentoo-user] OT - Question about new bash by znx
1 On Sun, 2006-01-29 at 18:05 +0000, znx wrote:
2 > Hi,
3 >
4 > for x in *.JPG; do
5 > if [ ! -e current/$x ]; then
6 >
7 > I can't see anything wrong with this in particular, one thing that
8 > springs to mind is to quote the string that you are testing:
9 >
10 > for x in *.JPG; do
11 > if [ ! -e "current/$x" ]; then
12 >
13 > Hope that helps
14 >
15
16 Yep, that worked! Thanks! Hmm, I wonder why it worked before?
17
18
19 --
20 gentoo-user@g.o mailing list

Replies

Subject Author
Re: [gentoo-user] OT - Question about new bash [SOLVED] Norberto Bensa <nbensa@×××.net>