From owner-freebsd-questions@FreeBSD.ORG Sun Sep 9 00:00:39 2007 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 C41B116A41B for ; Sun, 9 Sep 2007 00:00:39 +0000 (UTC) (envelope-from gpeel@thenetnow.com) Received: from thenetnow.com (thenetnow.com [69.90.69.141]) by mx1.freebsd.org (Postfix) with ESMTP id 8FAD613C48A for ; Sun, 9 Sep 2007 00:00:39 +0000 (UTC) (envelope-from gpeel@thenetnow.com) Received: from hpeel.ody.ca ([216.240.12.2] helo=GRANT) by constellation.thenetnow.com with esmtpa (Exim 4.63 (FreeBSD)) (envelope-from ) id 1IUAEA-000O7a-PU for freebsd-questions@freebsd.org; Sat, 08 Sep 2007 20:00:38 -0400 Message-ID: <000801c7f274$6fae71e0$6501a8c0@GRANT> From: "Grant Peel" To: Date: Sat, 8 Sep 2007 20:00:30 -0400 Organization: The Net Now MIME-Version: 1.0 X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.3138 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3138 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: csh if..then delhema. X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Grant Peel List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 09 Sep 2007 00:00:39 -0000 Hi all, I have tried every escape sequence I can think of, and I still get = Division by 0 error here.. if ($filesystem =3D=3D "\/") then $fsname =3D $fsnm1 elseif ($filesystem =3D=3D '/var') then $fsname =3D$fsnm2 elseif ($filesystem =3D=3D '/usr') then $fsname =3D $fsnm3 elseif ($filesystem =3D=3D '/home') then $fsname =3D $fsnm4 else $fsname =3D 'GREATERTHAN4 Any ideas how to excape the forward slashes in the if statemnt? -Grant