Just wanted to point out that these bashisms in apertium have a very
severe effect.   apertium itself does not run now on systems where
/bin/sh points to dash instead of bash:

0 d...@pip:~$ echo hello | apertium en-es
/usr/bin/apertium: 9: function: not found
USAGE: apertium [-d datadir] [-f format] [-u] <translation> [in [out]]
 -d datadir       directory of linguistic data
 -f format        one of: txt (default), html, rtf, odt, docx, wxml, xlsx
 -u               don't display marks '*' for unknown words
 translation      typically, LANG1-LANG2, but see modes.xml in language data
 in               input file (stdin by default)
 out              output file (stdout by default)
bash: echo: write error: Broken pipe
1 d...@pip:~$ echo hello | bash $(which apertium) en-es
hola
0 d...@pip:~$

This is still the case for apertium version 3.0.7+1-2 (from unstable),
unfortunately.

just switching the shebang line in /usr/bin/apertium seems to resolve
the problem for me, though.

        --dkg

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to