delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2007/10/09/02:08:08

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
Message-ID: <470B1B1B.2060404@columbus.rr.com>
Date: Tue, 09 Oct 2007 02:09:31 -0400
From: Paul McFerrin <pmcferrin AT columbus DOT rr DOT com>
Reply-To: pmcferrin AT columbus DOT rr DOT com
User-Agent: Thunderbird 2.0.0.6 (Windows/20070728)
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: -exec on find(1) broken
References: <31b7d2790710082032m10d42329q6270f374052afec5 AT mail DOT gmail DOT com>
In-Reply-To: <31b7d2790710082032m10d42329q6270f374052afec5@mail.gmail.com>
X-IsSubscribed: yes
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

I think I'm going nuts.  What am I doing wrong?  Can't seem to get -exec 
to work.

    /i/mp3.$ find . -type f -mtime +18 -exec /bin/echo \{\;\} | more
    find: missing argument to `-exec'
    /i/mp3.$ find . -type f -mtime +18 -exec /bin/echo \{\} | more 
    find: missing argument to `-exec'
    /i/mp3.$ find . -type f -mtime +18 -exec /bin/echo '\;' | more
    find: missing argument to `-exec'
    /i/mp3.$ find . -type f -mtime +18 -exec /bin/echo \{;\} | more
    find: missing argument to `-exec'
    /i/mp3.$ find . -type f -mtime +18 -exec echo '\;' | more
    find: missing argument to `-exec'

There is NO missing argument to -exec.  What gives?  Is it really broken 
or do I not understand the manual page correctly?

- paul mcferrin

Partial output of cygcheck.....
    Cygwin DLL version info:
        DLL version: 1.5.24
        Build date: Wed Jan 31 10:57:51 CET 2007
  Cygwin Package Information
  findutils            4.3.8-1




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