Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 8 Sep 2007 20:00:30 -0400
From:      "Grant Peel" <gpeel@thenetnow.com>
To:        <freebsd-questions@freebsd.org>
Subject:   csh if..then delhema.
Message-ID:  <000801c7f274$6fae71e0$6501a8c0@GRANT>

next in thread | raw e-mail | index | archive | help

Hi all,

I have tried every escape sequence I can think of, and I still get Division by 0 error here..

 if ($filesystem == "\/") then
                        $fsname = $fsnm1
                elseif ($filesystem == '/var') then
                        $fsname =$fsnm2
                elseif ($filesystem == '/usr') then
                        $fsname = $fsnm3
                elseif ($filesystem == '/home') then
                        $fsname = $fsnm4
                else
                        $fsname = 'GREATERTHAN4

Any ideas how to excape the forward slashes in the if statemnt?

-Grant



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?000801c7f274$6fae71e0$6501a8c0>