[GRASS-dev] possible bashism in scripts/mkftcap
Markus Neteler
neteler at osgeo.org
Mon Aug 3 14:24:44 EDT 2009
On Mon, Aug 3, 2009 at 8:09 PM, Glynn Clements<glynn at gclements.plus.com> wrote:
>
> Markus Neteler wrote:
>
>> I retrieved this from the Debian bugtracker:
>> http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=530092#20
>>
>> Should we implement their suggestion?
>
> Yes.
This?
svn diff tools/mkftcap/mkftcap
Index: tools/mkftcap/mkftcap
===================================================================
--- tools/mkftcap/mkftcap (revision 38574)
+++ tools/mkftcap/mkftcap (working copy)
@@ -31,7 +31,7 @@
fi
done
- if which fc-list >&/dev/null ; then
+ if which fc-list >/dev/null 2>&1 ; then
fc-list :outline file index \
| sed -n \
-e 's!^\(.*\)/\(.*\)\.\([^.]*\):
:index=0$!\2:\1/\2.\3:utf-8:!p' \
?
BTW: In my dash also the original works...
Markus
More information about the grass-dev
mailing list