From owner-freebsd-questions Mon Oct 23 23:23:53 1995 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.6.12/8.6.6) id XAA15042 for questions-outgoing; Mon, 23 Oct 1995 23:23:53 -0700 Received: from genesis.atrad.adelaide.edu.au (genesis.atrad.adelaide.edu.au [129.127.96.120]) by freefall.freebsd.org (8.6.12/8.6.6) with ESMTP id XAA14991 for ; Mon, 23 Oct 1995 23:23:35 -0700 Received: from msmith@localhost by genesis.atrad.adelaide.edu.au (8.6.9/8.6.9) id PAA04652; Tue, 24 Oct 1995 15:46:57 +0930 From: Michael Smith Message-Id: <199510240616.PAA04652@genesis.atrad.adelaide.edu.au> Subject: Re: portable shell scripts (csh vs Bourne/Korn shell) To: mcw@hpato.aus.hp.com (M C Wong) Date: Tue, 24 Oct 1995 15:46:57 +0930 (CST) Cc: freebsd-questions@freefall.freebsd.org In-Reply-To: <199510240553.AA082574029@relay.hp.com> from "M C Wong" at Oct 24, 95 03:53:46 pm Content-Type: text Content-Length: 1129 Sender: owner-questions@FreeBSD.org Precedence: bulk M C Wong stands accused of saying: > I wonder if anyone has any experience with supporting/maintaining > complicated environment with PORTABLE shell scripts (csh flavours and > Bourne and/or Korn shell flavours) for csh-type users and sh-type users ? > > To both categories of users, all the utilities and environemnt MUST > be the same in terms commands and expected behaviours. > > I am after some good tips for maintaing a large and complex environemnt > (some 40 developers) without having to double the effort for writing 2 > different flavours of scripts. Begin all of your scripts with #!/bin/sh And use sh for all of the scripts. This is rudimentary shell programming. (Although I may be misinterpreting your requirements) -- ]] Mike Smith, Software Engineer msmith@atrad.adelaide.edu.au [[ ]] Genesis Software genesis@atrad.adelaide.edu.au [[ ]] High-speed data acquisition and [[ ]] realtime instrument control (ph/fax) +61-8-267-3039 [[ ]] My car has "demand start" -Terry Lambert UNIX: live FreeBSD or die! [[