Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 10 May 2000 18:07:34 -0600
From:      "Duke Normandin" <dnormandin@freewwweb.com>
To:        "'freebsd-questions@FreeBSD.org'" <freebsd-questions@FreeBSD.ORG>
Subject:   csh script syntax error
Message-ID:  <000801bfbadf$b95fcd40$fbdba7d1@dnormandinfreewwweb.com>

next in thread | raw e-mail | index | archive | help
I'm running 3.3R...
The following script ( a port from tcsh) fails with the error message
if: expression syntax error

#!/bin/csh
#
if ( mv $* ~/tmp ) then
    echo "The files have been moved! To remove them "
    echo "use the 'purge' command "
else
    echo "Something's haywire! Files not moved. "
endif

I can't figure this puppy out! Tia.....

-duke



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?000801bfbadf$b95fcd40$fbdba7d1>