bugGNU patch - Bugs: bug #60676, test-lib.sh require bash to run,...

 
 

bug #60676: test-lib.sh require bash to run, which failed on non-bash environment

Submitter:  None
Submitted:  Wed 26 May 2021 02:49:42 PM UTC
 
Category:  None Severity:  3 - Normal
Item Group:  None Status:  None
Privacy:  Public Assigned to:  None
Open/Closed:  Open
* Mandatory Fields

Add a New Comment (Rich Markup)
   

Comment Type & Canned Response:
       No canned response available

 

Tue 16 Aug 2022 07:34:51 PM UTC, comment #1: 

all tests fail with eval: Bad substitution when /bin/sh == /bin/dash -- all pass when /bin/sh == /bin/bash

log from 2.7.5 shown and attached but 2.7.6 fails identically until shell changed

===========================================
   GNU patch 2.7.5: tests/test-suite.log
===========================================

# TOTAL: 39
# PASS:  0
# SKIP:  0
# XFAIL: 1
# FAIL:  38
# XPASS: 0
# ERROR: 0

.. contents:: :depth: 2

FAIL: asymmetric-hunks
======================

/home/BWI/src/cygwin/patch/patch-2.7.5-1.x86_64/src/patch-2.7.5/tests/asymmetric-hunks: 1: eval: Bad substitution
...

(file #53572)

Anonymous
Wed 26 May 2021 02:49:42 PM UTC, original submission:  

in tests/test-lib.sh:

116 if test -z "`echo -n`"; then
117     if eval 'test -n "${BASH_LINENO[0]}" 2>/dev/null'; then
118         eval '

BASH_LINENO is a bash only variable. I think we should check bash environment before running tests.

Anonymous

 

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

Attach Files:
   
   
Comment:
   

Attached Files
file #53572:  test-suite.log added by None (6KiB - application/octet-stream)

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

Only logged-in users can vote.

 

 

 

 

Follows 1 latest change.

Date Changed by Updated Field Previous Value => Replaced by
2022-08-16 None Attached File- Added test-suite.log, #53572

Back to the top


Powered by Savane 3.9