|
From: | Philip Rowlands |
Subject: | Re: Did I found a bug in "ls"? |
Date: | Tue, 10 Mar 2009 15:10:08 +0000 (GMT) |
User-agent: | Alpine 1.10 (DEB 962 2008-03-14) |
On Tue, 10 Mar 2009, Major Péter wrote:
But here is some list-related problems of mine: ls: If it has a null parameter e.g. in "find blah -print0 | xargs -0 ls" find gives no hit,the ls writes on the output (maybe on error output, I'm not sure) a message, that incorrect argumentum has camed, BUT it still writes out the content of a normal ls, and the exit status is 0. So that's why I need to check first, that the find output whether null is or not...
See the --no-run-if-empty argument to xargs. Cheers, Phil
[Prev in Thread] | Current Thread | [Next in Thread] |