Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Reply-To: <cygwin@cygwin.com>
From: "Ross Boulet" <ross@rossb.com>
To: <cygwin@cygwin.com>
Cc: "'Christopher Spears'" <cspears2002@yahoo.com>
Subject: RE: problems with script
Date: Tue, 13 Apr 2004 17:12:27 -0500
Message-ID: <000101c421a4$6cb60d80$6601a8c0@RossLap>
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
In-Reply-To: <20040413212742.66409.qmail@web12402.mail.yahoo.com>
X-IsSubscribed: yes

> -----Original Message-----
> From: cygwin-owner On Behalf Of Christopher Spears
> 
[ ... ]
> > >
> > > #get argument name
> > > set dest = $argv[1]
[ ... ]
> > > following command line:
> > > (date; du ~) | ./ppd.txt ~/disk_storage&
> > >
[ ... ]
> 
> I changed the first line to "!/bin/tcsh -x", and then
> tried to run the script again.  Here are the results:
> 
> set tf = /tmp/ppd.1316
> set dest = /home/Christopher Spears/disk_storage
> set: Syntax error
> 
> So it seems the first two lines work...Right?  What is stderr?
> 
Looks to me like the "set dest" line is choking because you have a space in
your home directory name.  Try using double quotes such as:

set dest = "$argv[1]"

and again anywhere $dest is used.

As an alternative, change your home directory name to not have a space and
modify /etc/passwd accordingly.



--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

