text to html

Polytropon freebsd at edvax.de
Sun Jul 4 15:39:52 UTC 2010


On Sat, 03 Jul 2010 19:10:54 +0200, Jozsi Avadkan <jozsi.avadkan at gmail.com> wrote:
> my own solution: http://pastebin.com/raw.php?i=kqQXCpD5

Allow me a short comment:

Your first line

	#!/bin/bash

will make it non-portable, and usually non-runnable on FreeBSD.
I know that bash is the default shell for scripting in Linux, and
it is located in /bin. But FreeBSD is not Linux. Here, bash is
an additional port, and /usr/local/bin would be the path where
the bash executable is placed (unless you use specific port
options).

Of course, if you want to run this script on Linux only - no
problem.

I'm not seeing any bash-specific (outside sh capabilites) stuff
here, so why not use the default #!/bin/sh shebang here? There
would be nothing wrong with conforming to the standard...



-- 
Polytropon
Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...


More information about the freebsd-questions mailing list