On Tue, 2005-07-05 at 11:36 +0100, Adam Funk wrote: > Andrew Schulman wrote: > > >> Why did this behaviour change, and how can I fix my script? > > > > An alternative is > > > > find ... -print0 | xargs -0r rm -i > > I get the same problem with that! > > $ find . -name '*~' -print0 |xargs -0r rm -i > rm: remove regular file `./.emacs.d/auto-save-list/.saves-20203-vilnius~'? > rm: remove regular file `./.emacs.d/auto-save-list/.saves-1888-vilnius~'? > rm: remove regular file > `./.emacs.d/auto-save-list/.saves-1049-vilnius.co.umist.ac.uk~'? rm: > remove ... > > It prints out the questions, doesn't wait for responses from the keyboard, > and does nothing. > > Have I screwed something up? (This started happening on my home and office > computers at about the same time.)
Well on 'sarge', under bash, the find . -name 'whatever' -exec rm -i {} ";" works as expected for me, but the above example exhibits the same performance as you note (I'm no 'xargs' expert and can's see what the '-0r' option is meant to do) If I were you I'd check that the first form works from the command line and then take it from there. Are you running bash under sarge? -- Michael Bane Atmospheric Physics Group University of Manchester -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]