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 =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



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