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:  find Severity:  2 - Minor
Item Group:  Compilation Failure Status:  Fixed
Privacy:  Public Assigned to:  James Youngman <jay>
Originator Name:  Paolo Pedroni Open/Closed:  Closed
Release:  4.5.12 Fixed 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 -email is 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 Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

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

    Only logged-in users can vote.

     

     

     

    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2015-12-18 jay Open/ClosedOpen => Closed
        Fixed ReleaseNone => 4.5.15
    2015-05-10 jay StatusIn Progress => Fixed
    2015-05-10 jay Carbon-Copy- => Added mike frysinger <vapier@gentoo.org>

    Back to the top


    Powered by Savane 3.5