Open sdaoden opened 2 weeks ago
(And have you ever thought on asking Arnold Robbins of gawk whether he would be interested to support switching the locale? If he does not do that already. He is a very friendly and helpful person. Btw on some boxes there is "mandoc" as a replacement of groff, just say "mandoc -Tutf8" and it will do the rest.) But now really Ciao!
(Ah please wait, just one tiny addition: one can in fact "exec gawk" to pass execution over.)
(Oh, and one very very last final thing, even the cat is not needed, one can simply say
( <<'EOT' exec gawk -f - > BEGIN{print "hi"} > EOT ) hi
so even that process is not necessary. translate-shell is cool :) Ciao!!)
Hello! I just got pointed to this program by noone else but Nelson H. F. Beebe (after noting that dict.cc is so slow to access with the lynx text mode browser on the lynx list), who says he uses this for many purposes for many years, and so i tried it, and it is a really great tool to have. Thank you! (I have created a CRUX Linux package now, but i am no longer in "official" contrib, it is only in my private user repository .. that some people seem to access; anyhow).
So you can very well ignore the rest and close this "issue", i only stumbled upon it and thought i share that.
Iooked into the script, and i saw it looks for $LANG. Whereas that is ok, since many in the Linux world (GNU etc) document users should set that, $LANG is only a secondary switch, and i for example do not set it, but LC_ALL (this is also much much much faster). (C.UTF-8 is coming along, too, but checking for it would make installation more lengthy.)
It also seems bash is not really needed. Ie the following snippet should work just fine in any POSIX shell, and since the /usr/bin/trans thing is a cumulation generated via script the (possibly) necessary quoting in the manual page could very easily be done. This is just a quick hack, of course.
Ciao! And thanks for this tool!