Bug 181874

Summary: nash: fix findCommand
Product: [Fedora] Fedora Reporter: Mark McLoughlin <markmc>
Component: mkinitrdAssignee: Peter Jones <pjones>
Status: CLOSED NEXTRELEASE QA Contact: David Lawrence <dkl>
Severity: medium Docs Contact:
Priority: medium    
Version: rawhide   
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2006-02-22 18:03:10 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
mkinitrd-fix-find-command.patch
none
mkinitrd-fix-find-command.patch none

Description Mark McLoughlin 2006-02-17 12:27:42 UTC
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.

Comment 1 Mark McLoughlin 2006-02-17 12:27:43 UTC
Created attachment 124809 [details]
mkinitrd-fix-find-command.patch

Comment 2 Mark McLoughlin 2006-02-17 12:31:34 UTC
Created attachment 124812 [details]
mkinitrd-fix-find-command.patch

Fixed indentation

Comment 3 Mark McLoughlin 2006-02-21 13:39:51 UTC
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