Opened 12 days ago

Last modified 5 days ago

#30078 needs_review defect

shellcheck: src/test/fuzz/fixup_filenames.sh issues

Reported by: rl1987 Owned by: rl1987
Priority: Medium Milestone: Tor: 0.4.1.x-final
Component: Core Tor/Tor Version:
Severity: Normal Keywords:
Cc: Actual Points:
Parent ID: Points:
Reviewer: Sponsor:

Description

In ./src/test/fuzz/fixup_filenames.sh line 11:
    prev=`basename "$fn"`
         ^--------------^ SC2006: Use $(...) notation instead of legacy backticked `...`.


In ./src/test/fuzz/fixup_filenames.sh line 12:
    post=`sha256sum "$fn" | sed -e 's/ .*//;'`
         ^-- SC2006: Use $(...) notation instead of legacy backticked `...`.


In ./src/test/fuzz/fixup_filenames.sh line 13:
    if [ "$prev" == "$post" ] ; then
                 ^-- SC2039: In POSIX sh, == in place of = is undefined.

For more information:
  https://www.shellcheck.net/wiki/SC2039 -- In POSIX sh, == in place of = is ...
  https://www.shellcheck.net/wiki/SC2006 -- Use $(...) notation instead of le...

Child Tickets

Change History (3)

comment:1 Changed 12 days ago by nickm

Milestone: Tor: 0.4.1.x-final

batch-assigning shellcheck tickets to 0.4.1

comment:2 Changed 5 days ago by rl1987

Owner: set to rl1987
Status: newaccepted

comment:3 Changed 5 days ago by rl1987

Status: acceptedneeds_review
Note: See TracTickets for help on using tickets.