sections with listfile
Petr Skoda wrote on Apr 06, 2007
I want to use image sections with listfile and it does not work
Is it possible to do this or have I to go to cycle file by file ?
complains : ERROR: Cannot open file tlist%%
when using
works but the section is ignored
The same with command sections
But if not using the section in appends, it works:
The version with section works without concatenation mark, but only for templates without listfile:
Is it a bug or feature ;-) ?
Petr Skoda
Is it possible to do this or have I to go to cycle file by file ?
imcopy @tlist[-*,*], t//@tlist
complains : ERROR: Cannot open file tlist%%
when using
imcopy @tlist//[-*,*], t//@tlist
works but the section is ignored
The same with command sections
sections "@tlist//[-*,*]"
apl07008.fit
apl07013.fit
But if not using the section in appends, it works:
sections "@tlist//ppp"
apl07008ppp.fit
apl07013ppp.fit
The version with section works without concatenation mark, but only for templates without listfile:
sections apl*.fit[-*,*]
apl07008.fit[-*,*]
apl07013.fit[-*,*]
Is it a bug or feature ;-) ?
Petr Skoda
Mike Fitzpatrick wrote on Apr 06, 2007
Hi Petr,
Not quite a bug or a feature, more like a strange interaction between two interfaces. The image template code is based on the more general file template code, except that the stuff in the braces is stripped/saved and the rest is passed to the file template for expansion. The @file syntax is a special case in the file template and doesn't interact well in some expressions.
In any case, to get the behavior you want you need to do the escape in a completely non-intuitive manner, e.g.
Note that it's only the closing ']' that isn't escaped.
Cheers,
-Mike
Not quite a bug or a feature, more like a strange interaction between two interfaces. The image template code is based on the more general file template code, except that the stuff in the braces is stripped/saved and the rest is passed to the file template for expansion. The @file syntax is a special case in the file template and doesn't interact well in some expressions.
In any case, to get the behavior you want you need to do the escape in a completely non-intuitive manner, e.g.
cl> sections @tlist//\[\-\*\,\*]Note that it's only the closing ']' that isn't escaped.
Cheers,
-Mike
Last post on Apr 06, 2007