delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2008/04/19/00:39:56

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
Message-ID: <48097839.F9B4831@dessent.net>
Date: Fri, 18 Apr 2008 21:42:33 -0700
From: Brian Dessent <brian AT dessent DOT net>
X-Mailer: Mozilla 4.79 [en] (Windows NT 5.0; U)
MIME-Version: 1.0
To: Dave Burns <tburns AT hawaii DOT edu>
CC: cygwin AT cygwin DOT com
Subject: Re: bash script works on one PC, bombs on another?
References: <943be0b10804181948t509e7a6cg189229e568ba03fc AT mail DOT gmail DOT com>
X-IsSubscribed: yes
Reply-To: cygwin AT cygwin DOT com
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/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

Dave Burns wrote:

> #!/bin/bash
> #invoke audit.sh if results are too old
> /usr/bin/find /cygdrive/c/audit.txt -mtime +7 -exec
> /cygdrive/c/audit/audit.sh  \;

Is the file really wrapped like that or is it all one line?

> Maybe different versions of find?

Um, that's kind of the sort of thing you're supposed to tell us, such as
by attaching 'cygcheck -srv' output or at least the output of 'find
--version'.

> Some strange enviroment thing? I re-installed cygwin
> from scratch on the one that bombs, no help there.

Perhaps you have DOS line endings in one file and not the other, and
find is seeing ";\r" which it treats as an argument to pass to the
exec'd process and not the list terminator.

Brian

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019