bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

strange behavior of assignment


From: Francky Leyn
Subject: strange behavior of assignment
Date: Wed, 28 Mar 2012 18:25:20 -0000
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:5.0) Gecko/20110624 Thunderbird/5.0

Hello,

consider the following snippet:

EXTENSION=png
INPUT_FILES=*.$EXTENSION

If there are for example 3 input files, an echo delivers:

echo $INPUT_FILES --> '01.png 02.png 03.png'

No we change the EXTENSION:

EXTENSION=jpg

Now, in a dir without jpg files the following happens:

INPUT_FILES=*.$EXTENSION
echo $INPUT_FILES  --> '*.jpg' instead of the empty string.

Is there any way I can optain an empty string?
I would like to test on the zeroness of INPUT_FILES.


Best regards,

Francky Leyn


reply via email to

[Prev in Thread] Current Thread [Next in Thread]