This is the mail archive of the
mailing list for the Cygwin project.
Re: bash script works on one PC, bombs on another?
- From: Brian Dessent <brian at dessent dot net>
- To: Dave Burns <tburns at hawaii dot edu>
- Cc: cygwin at cygwin dot com
- Date: Fri, 18 Apr 2008 21:42:33 -0700
- Subject: Re: bash script works on one PC, bombs on another?
- References: <email@example.com>
- Reply-to: cygwin at cygwin dot com
Dave Burns wrote:
> #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
> 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.
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html