This is the mail archive of the
cygwin
mailing list for the Cygwin project.
RE: problems with script
- From: "Ross Boulet" <ross at rossb dot com>
- To: <cygwin at cygwin dot com>
- Cc: "'Christopher Spears'" <cspears2002 at yahoo dot com>
- Date: Tue, 13 Apr 2004 17:12:27 -0500
- Subject: RE: problems with script
- Reply-to: <cygwin at cygwin dot com>
> -----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/