On Sat, 03 Jul 2010 19:10:54 +0200, Jozsi Avadkan <[email protected]>
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, ...
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[email protected]"