Hi, I believe my attached patch would work as well, and is more consistent with the other cases in fai-do-scripts. The problem with the old pattern is that the * is not getting interpolated, so actually, only a string with the value 'perl*script' would ever match. See test cases below:
% cat test-case.sh
#!/bin/bash
echo $filetype
case $filetype in
*"perl*script"*)
echo "Matches old case statement in fai-do-scripts."
;;
*"perl"*"script"*)
echo "Matches proposed case statement in fai-do-scripts "
;;
*) echo "No hits in either case statement" ;;
esac
% setenv filetype "a perl*script text executable"
% ./test-case.sh
a perl*script text executable
Matches old case statement in fai-do-scripts.
% setenv filetype "a /usr/bin/perl -w script text executable"
% ./test-case.sh
a /usr/bin/perl -w script text executable
Matches proposed case statement in fai-do-scripts
% setenv filetype "a /usr/bin/perl script text executable"
% ./test-case.sh
a /usr/bin/perl script text executable
Matches proposed case statement in fai-do-scripts
Regards,
Mike Carvalho
The MathWorks, Inc.
[EMAIL PROTECTED]
fai-do-scripts.make-perl-work.patch
Description: fai-do-scripts.make-perl-work.patch

