delorie.com/archives/browse.cgi | search |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sources.redhat.com/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
Message-ID: | <20040413182602.7725.qmail@web12403.mail.yahoo.com> |
Date: | Tue, 13 Apr 2004 11:26:02 -0700 (PDT) |
From: | Christopher Spears <cspears2002 AT yahoo DOT com> |
Subject: | problems with script |
To: | cygwin AT cygwin DOT com |
MIME-Version: | 1.0 |
I created the following script: #!/bin/tcsh #csh script to prepend standard input to file argument #Version 1 #name temp file set tf = /tmp/ppd.$$ #get argument name set dest = $argv[1] #copy standard input, $dest to $tf cat - $dest > $tf #replace original file mv $tf $dest However, when I run the script in the tcsh with the following command line: (date; du ~) | ./ppd.txt ~/disk_storage& I get a syntax error (set: Syntax Error). I posted this script on an online Linux forum. A member copied it into vi, and it worked fine. Is there something in Cygwin that I need to do? I have written #!/bin/tcsh at the top, and I haved used set before in tcsh. -- 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/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |