public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] xargs and rm funkiness
@ 2010-05-22  1:49 Daniel D Jones
  2010-05-22  2:11 ` covici
                   ` (2 more replies)
  0 siblings, 3 replies; 17+ messages in thread
From: Daniel D Jones @ 2010-05-22  1:49 UTC (permalink / raw
  To: gentoo-user

Running the command:

find -name *.ext | xargs -0 rm

I get the result:

rm: cannot remove `Long File Name One.ext\nLong File Name Two.ext\nLong File 
Name Three.ext\n': File name too long.

(The actual list is much longer than this, of course, or I wouldn't be using 
xargs.)  For some reason, the \n isn't being recognized as a separator but 
rather as a part of a single long file name.  Don't think $IFS would affect a 
command like rm but it doesn't appear to be the issue:

ddjones@merlin ~ $ set | grep IFS
IFS=$' \t\n'

I don't see any other ser variable which looks like a likely candidate to 
cause the behavior.  Anyone have a clue what's going on?

-- 
"Why assume so glibly that the God who created the universe is still running 
it? It is certainly conceivable that He may have finished it and then turned it 
over to lesser gods to operate." - H.L. Mencken



^ permalink raw reply	[flat|nested] 17+ messages in thread

end of thread, other threads:[~2010-05-29 21:02 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <eMMk1-3Xc-13@gated-at.bofh.it>
     [not found] ` <eMRWq-3I8-5@gated-at.bofh.it>
2010-05-22 11:35   ` [gentoo-user] xargs and rm funkiness David W Noon
2010-05-22 12:25     ` Neil Bothwick
2010-05-23 17:51       ` Daniel D Jones
2010-05-22  1:49 Daniel D Jones
2010-05-22  2:11 ` covici
2010-05-22 16:04   ` Daniel D Jones
2010-05-22  7:46 ` Neil Bothwick
2010-05-22 18:38   ` Jan Engelhardt
2010-05-22 22:02     ` Neil Bothwick
2010-05-26 10:41   ` Joerg Schilling
2010-05-22  7:49 ` Patrick Holthaus
2010-05-26 10:42   ` Joerg Schilling
2010-05-29 15:05     ` Daniel D Jones
2010-05-29 18:04       ` Etaoin Shrdlu
2010-05-29 18:43         ` Joerg Schilling
2010-05-29 18:59       ` Alan McKinnon
2010-05-29 21:01         ` Daniel D Jones

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox