From owner-freebsd-questions@FreeBSD.ORG Sun Jul 4 15:39:52 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 076AD1065670 for ; Sun, 4 Jul 2010 15:39:52 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mx02.qsc.de (mx02.qsc.de [213.148.130.14]) by mx1.freebsd.org (Postfix) with ESMTP id BC9468FC18 for ; Sun, 4 Jul 2010 15:39:50 +0000 (UTC) Received: from r55.edvax.de (port-92-195-117-232.dynamic.qsc.de [92.195.117.232]) by mx02.qsc.de (Postfix) with ESMTP id C61611E2F2; Sun, 4 Jul 2010 17:39:48 +0200 (CEST) Received: from r55.edvax.de (localhost [127.0.0.1]) by r55.edvax.de (8.14.2/8.14.2) with SMTP id o64FdlHn001489; Sun, 4 Jul 2010 17:39:47 +0200 (CEST) (envelope-from freebsd@edvax.de) Date: Sun, 4 Jul 2010 17:39:47 +0200 From: Polytropon To: Jozsi Avadkan 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> Organization: EDVAX X-Mailer: Sylpheed 2.4.7 (GTK+ 2.12.1; i386-portbld-freebsd7.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: FreeBSD Mailing list Subject: Re: text to html X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Polytropon List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 04 Jul 2010 15:39:52 -0000 On Sat, 03 Jul 2010 19:10:54 +0200, Jozsi Avadkan 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, ...