Discovered while debugging bug #181873 Argument parsing in findCommand() is a little broken. This doesn't work: find /dev It incorrectly thinks that the lines following the command are arguments and then barfs when it realizes they arent.
Created attachment 124809 [details] mkinitrd-fix-find-command.patch
Created attachment 124812 [details] mkinitrd-fix-find-command.patch Fixed indentation
Without patch: $> cat > /tmp/t.sh << EOF nash-find /dev foo $> nash /tmp/t.sh (running in test mode). Red Hat nash version starting usage: find [-type type] [path [-name file]] Works with patch