Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 4 Jul 2010 17:39:47 +0200
From:      Polytropon <freebsd@edvax.de>
To:        Jozsi Avadkan <jozsi.avadkan@gmail.com>
Cc:        FreeBSD Mailing list <freebsd-questions@freebsd.org>
Subject:   Re: text to html
Message-ID:  <20100704173947.59aa4a2d.freebsd@edvax.de>
In-Reply-To: <1278177054.5667.6.camel@localhost>
References:  <1278148049.4480.9.camel@localhost> <1278177054.5667.6.camel@localhost>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, 03 Jul 2010 19:10:54 +0200, Jozsi Avadkan <jozsi.avadkan@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, ...



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20100704173947.59aa4a2d.freebsd>