bugfindutils - Bugs: bug #45064, Use of [[ ... ]] in /bin/sh script...

 
 

bug #45064: Use of [[ ... ]] in /bin/sh script is incorrect

Submitted by:  James Youngman <jay>
Submitted on:  Sun 10 May 2015 01:34:13 PM UTC  
 
Category: findSeverity: 2 - Minor
Item Group: Compilation FailureStatus: Fixed
Privacy: PublicAssigned to: James Youngman <jay>
Originator Name: Paolo PedroniOpen/Closed: Closed
Release: 4.5.12Fixed Release: 4.5.15

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Sun 10 May 2015 01:34:13 PM UTC, original submission:

See Gentoo bug report at https://bugs.gentoo.org/531020.

indutils-4.5.12:20141128-163856.log.gz

Looks like the binary_locations.sh file has some bashisms in it:

Making a new site.exp file...
PASS: sv-bug-32043.sh
./test_escapechars.sh: 3: ./binary_locations.sh: [[: not found
./test_escapechars.sh: 9: ./binary_locations.sh: [[: not found
./test_escapechars.sh: 12: ./binary_locations.sh: [[: not found
Cannot find the executables to test.
FAIL: test_escapechars.sh
./test_escape_c.sh: 3: ./binary_locations.sh: [[: not found
./test_escape_c.sh: 9: ./binary_locations.sh: [[: not found
./test_escape_c.sh: 12: ./binary_locations.sh: [[: not found
Cannot find the executables to test.
FAIL: test_escape_c.sh
./test_inode.sh: 3: ./binary_locations.sh: [[: not found
./test_inode.sh: 9: ./binary_locations.sh: [[: not found
./test_inode.sh: 12: ./binary_locations.sh: [[: not found
Cannot find the executables to test.
FAIL: test_inode.sh
./sv-34079.sh: 3: ./binary_locations.sh: [[: not found
./sv-34079.sh: 9: ./binary_locations.sh: [[: not found
./sv-34079.sh: 12: ./binary_locations.sh: [[: not found
Cannot find the executables to test.
srcdir='.'; export srcdir; \
EXPECT=expect; export EXPECT; \
runtest=runtest; \
if /bin/bash -c "$runtest --version" > /dev/null 2>&1; then \
exit_status=0; l='find'; for tool in $l; do \
if $runtest --tool $tool --srcdir $srcdir ; \
then :; else exit_status=1; fi; \
done; \
else echo "WARNING: could not find \`runtest'" 1>&2; :;\
fi; \
exit $exit_status
FAIL: sv-34079.sh
./sv-34976-execdir-fd-leak.sh: 3: ./binary_locations.sh: [[: not found
./sv-34976-execdir-fd-leak.sh: 9: ./binary_locations.sh: [[: not found
./sv-34976-execdir-fd-leak.sh: 12: ./binary_locations.sh: [[: not found
Cannot find the executables to test.
FAIL: sv-34976-execdir-fd-leak.sh
======================================
5 of 6 tests failed
Please report to -unavailable-
======================================

The same applies to sys-apps/findutils-4.5.14-r1

James Youngman <jay>
Project AdministratorIn charge of this item.

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by jay (Submitted the item)
  • -unavailable- added by jay
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 4 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Fri 18 Dec 2015 02:56:10 PM UTCjayOpen/ClosedOpen=>Closed
      Fixed ReleaseNone=>4.5.15
    Sun 10 May 2015 01:55:15 PM UTCjayStatusIn Progress=>Fixed
    Sun 10 May 2015 01:34:13 PM UTCjayCarbon-Copy-=>Added mike frysinger

    Back to the top


    Powered by Savane 3.1-cleanup1