From Bugzilla Helper: User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.2.1) Gecko/20021130 Description of problem: The -i option to xargs only works if it's the last option specified. $ echo Hi | xargs -i -n1 echo {} There {} There Hi $ echo Hi | xargs -n1 -i echo {} There Hi There Version-Release number of selected component (if applicable): findutils-4.1.7-7 How reproducible: Always Steps to Reproduce: 1. Use 2 or more options (including -i) with xargs 2. If -i is not the last option, the {} replace string doesn't work Actual Results: {} became an argument to the command instead of being replaced by input from STDIN Expected Results: {} should have been replaced by input from STDIN Additional info: Bug also appears in RedHat 7.3 (findutils-4.1.7-4)
Actually of course -i isn't really compatible with -n in general. For the specific case -n1 it is though, so I've made it ignore the -n option in that case. Fixed package is findutils-4.1.7-10, which will appear in rawhide in due course.