[Bug 9186] New: sha256sum in a script causes following commands to be executed twice

bugzilla at busybox.net bugzilla at busybox.net
Thu Aug 18 16:18:29 UTC 2016


https://bugs.busybox.net/show_bug.cgi?id=9186

            Bug ID: 9186
           Summary: sha256sum in a script causes following commands to be
                    executed twice
           Product: Busybox
           Version: unspecified
          Hardware: Other
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P5
         Component: Other
          Assignee: unassigned at busybox.net
          Reporter: djarvie at kde.org
                CC: busybox-cvs at busybox.net
  Target Milestone: ---

Created attachment 6611
  --> https://bugs.busybox.net/attachment.cgi?id=6611&action=edit
Config file used to build Busybox

Busybox version 1.25, running in OpenWRT.

When the sha256sum command is executed in a script, all the following commands
in the script are executed, and then they are all executed a second time. There
is no loop in the script. A workaround is to put the sha256sum command into a
little script by itself, and to call that script from the main script.

Example script:

#!/bin/sh
echo START
#tar tvJf /dev/mtd3
sha256sum -c app.sha256
echo MIDDLE
echo END

Executing this script produces the following output:

START
sha256sum: app.sha256: No such file or directory
MIDDLE
END
MIDDLE
END

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the busybox-cvs mailing list