From owner-freebsd-questions@FreeBSD.ORG Wed Nov 12 19:14:20 2008 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 D30EF106564A for ; Wed, 12 Nov 2008 19:14:20 +0000 (UTC) (envelope-from gesbbb@yahoo.com) Received: from smtp107.prem.mail.ac4.yahoo.com (smtp107.prem.mail.ac4.yahoo.com [76.13.13.46]) by mx1.freebsd.org (Postfix) with SMTP id 7B44B8FC14 for ; Wed, 12 Nov 2008 19:14:20 +0000 (UTC) (envelope-from gesbbb@yahoo.com) Received: (qmail 10946 invoked from network); 12 Nov 2008 19:14:19 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Received:X-YMail-OSG:X-Yahoo-Newman-Property:Date:From:To:Subject:Message-ID:In-Reply-To:References:Reply-To:Organization:X-Mailer:Face:X-Face:Mime-Version:Content-Type; b=0kKURZWDS0TenNXrcsCa5Jq8GZEhu1Ug46q7krOnTStt1Gg5+wb6JZo8n5bVFU4IPsH74tNd9OsIfQEcjk62d1DFmjS/OUCbzqbey6B3Pg9jPMuajt4l4rIpHJG8SG5Z0qBygbV5RjBNoka4dHuxccTo59oDPIbmyjPFahkQOwQ= ; Received: from unknown (HELO scorpio) (gesbbb@76.23.177.172 with login) by smtp107.prem.mail.ac4.yahoo.com with SMTP; 12 Nov 2008 19:14:19 -0000 X-YMail-OSG: IqKiuwEVM1lU8X24AbXvu2FGOvtMubwYnMKr4lYj5V62V7exjZWlegtqFfPKT9vm8GuaM5nhDi_GFYhBSUAh3Z_feWMZooRMQpXz5nwyTYZwkdy4ODXQzj7wC7n2aejhmYIeEEBitsK2DQmNVareGmIa7IdFSBxvyCNBtCERxVMTh3akEWPI5saUuA-- X-Yahoo-Newman-Property: ymail-3 Date: Wed, 12 Nov 2008 14:14:07 -0500 From: Jerry To: freebsd-questions@freebsd.org Message-ID: <20081112141407.0be011ae@scorpio> In-Reply-To: <20081112080616.2e195af5.freebsd@edvax.de> References: <20081110110805.GK1302@obspm.fr> <20081110161002.GA81960@gizmo.acns.msu.edu> <20081110203643.GH27646@obspm.fr> <200811102235.46971.fbsd.questions@rachie.is-a-geek.net> <4ad871310811101530p7b2baa0fk7f7b5118e314c11d@mail.gmail.com> <4918CE42.3050504@ccstores.com> <20081111151302.GA86528@gizmo.acns.msu.edu> <20081112080616.2e195af5.freebsd@edvax.de> Organization: seibercom.net X-Mailer: Claws Mail 3.5.0 (GTK+ 2.12.11; i386-portbld-freebsd6.3) Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAGFBMVEX+/v7++v6YOTrq8PCcuIX989UvOSj++v0BNCbpAAAAB3RJTUUHsQwfFzs7RBhzUQAAAhJJREFUOI1dU8GOqzAMNKIoV1bvwD1i0ysqrHplIdBrVSX7ATSbd03VVvn9tQNtQy0hjAdn7LED4AAcPtWm9RV+MPSfxhBLx9ajd6X/ngB6/mTwnRSZua7i7Ca+0ctZKo4Qmz+JY13X6I3nFZBxIYW1PbgfQ5RP8g0XlltEWGf3cV03joYpRnFbvYDKbXjZlXyyhEZA4lI+cN3NaVXE4VKjSwTExO10eTEkkJVqIAD5z0nUBQJluQDRSQjcrBiHAJxZlAH5CUMBMC7OcJ4LMQNnxhZ1HYPscMc6J4UlWRMNwzOpCcAHKSICd1EDn83abdREIbXsHkD1OinP1aCUCOEVRaa1lMcvywUWdYgk13JQUpYNKmvXQ8Kw5ML9YI5h8SakctBc7E/IYuLhYd/zZIk+1gM1vNweQBvHE0j+oYah3sMqAytQYlZk6+ANaaawJdu3OFzYGMZ3iGpa3qMlq9ZH0VZTgrCtw/ngdYkEIIpSbP1bWQAdFdX9vocBdkH2qVjVmuMu3gI5rjs814EUdrCZgWlPaxZZ3RiLFUtr+ud0PXwp2dnQSNXgePt6AZpBj6UMJ7VQkzN4utVeaSW1Dhn/kblGrKeMvNGnzwX4zuEDarYz1KdPtR60Gul0Gued+515SJXhCsl+Tx/3kY/UDvicPll9mfu50t3tvQ/thZpJYgeuwdSKNJ6tCD98MCgoxLDaPxbwqqwPWaWiAAAAAElFTkSuQmCC X-Face: "\j?x](l|]4p?-1Bf@!wN<&p=$.}^k-HgL}cJKbQZ3r#Ar]\%U(#6}'?<3s7%(%(gxJxxcR nSNPNr*/^~StawWU9KDJ-CT0k$f#@t2^K&BS_f|?ZV/.7Q Mime-Version: 1.0 Content-Type: multipart/signed; boundary="Sig_/zLhl2XT1uroNONGP/Oblec3"; protocol="application/pgp-signature"; micalg=PGP-SHA1 Subject: Re: root /etc/csh X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: freebsd-questions@freebsd.org List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 12 Nov 2008 19:14:20 -0000 --Sig_/zLhl2XT1uroNONGP/Oblec3 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Wed, 12 Nov 2008 08:06:16 +0100 Polytropon wrote: >Especially in Linux, it's common to prefix scripts with #!/bin/bash >which won't work in FreeBSD, because it's #/usr/local/bin/bash there. >Linux has no problem running #!/bin/sh scripts because there's a >symlink /bin/sh -> /bin/bash. > >My advice for maximum interoperability and compatibility between Linux >and UNIX: If you're not using any bash specific techniques in your >scripts, start them with #!/bin/sh instead of #!/bin/bash. > >The sh shell is the UNIX standard scripting shell, while Linux's >one is bash. I usually just use: #!/usr/bin/env bash It seems to work on both Linux and FBSD. --=20 Jerry gesbbb@yahoo.com His life was formal; his actions seemed ruled with a ruler. --Sig_/zLhl2XT1uroNONGP/Oblec3 Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (FreeBSD) iEYEARECAAYFAkkbKwgACgkQBvaKIJWWCO00OwCgixpOA+d4YVf2qO/HH+3UkAvG l0QAniPvG7oXPmhVqTb0jSRBIn1yeGqk =vv0s -----END PGP SIGNATURE----- --Sig_/zLhl2XT1uroNONGP/Oblec3--