Community
cancel
Showing results for 
Search instead for 
Did you mean: 
jim_fry
Beginner
81 Views

vtl script fails when invoked with current directory having certain file names

When you have, for example, subdirectories in your current directory with filenames of a, b, and c, if you try to invoke vtl, you get the error message:
tr: too many arguments
Try 'tr --help' for more information
The problem lies in the bash script sampling.product . It has a line:
KERNEL_START=`${GREP} "${TEXT_START_TAG}$" ${KERNEL_MAP} | ${CUT} -f 1 -d " " | ${TR} [a-f] [A-F]`
When it is executed, [a-f] gets substituted with 'a b c b c', for some reason I'll let the bash experts explain.
I think it can be fixed with adding a backslash before the '['s and ']'s. There are other places in the scripts that may contain similar errors.
Thanks,
Jim Fry
0 Kudos
0 Replies
Reply