Hopefully Someone Will Check and Comment on My Logic [OT Maybe?]

Dan McGhee beesnees62 at att.net
Sun Mar 13 11:12:20 PDT 2011


On 03/13/2011 01:06 PM, Dan McGhee wrote:
> On 03/12/2011 08:00 PM, Neal Murphy wrote:
>> <snipping>
>> OR use:
>>     [ -e "file_1" ]&&   [ ! -e "file_2" ]&&   {
>>       <commands>;
>>     }
>>     # equivalent: test -e "$file_1&&   test ! -e file_2&&   {
>>
>> OR even use:
>>     [ -e "file_1" -a ! -e "file_2" ]&&   {
>>       <commands>;
>>     }
>>     # equivalent: test -e "file_1" -a ! -e "file_2"&&   {
>>
>> <snipping>
> Thanks for the insight, Neal. I'm starting to "play" with the script. In
> the above examples are you suggesting that I enclose the names of the
> files in quotes? I can't find this syntax in my references. If you are
> suggesting it, is it so that no expansion takes place?
I just found in the fine print of an example. ABS Guide uses it to allow 
for spaces.
>> Nothing else on your script pokes me in the eye with a sharp stick.
> Good.
>
Thanks again.

Dan



More information about the lfs-support mailing list