bugfindutils - Bugs: bug #63934, tests/xargs/verbose-quote.sh fails...

 
 

bug #63934: tests/xargs/verbose-quote.sh fails with dash shell as /bin/sh

Submitter:  Sam James <thesamesam>
Submitted:  Thu 16 Mar 2023 06:46:57 PM UTC
   
 
Category:  None Severity:  3 - Normal
Item Group:  None Status:  Fixed
Privacy:  Public Assigned to:  berny
Originator Name:  Open/Closed:  Closed
Release:  None Fixed Release:  4.10.0
* Mandatory Fields

Add a New Comment Rich Markup
   

Tue 23 May 2023 12:00:58 AM UTC, comment #1: 
Bernhard Voelker <berny>
Group administrator
Thu 16 Mar 2023 06:46:57 PM UTC, original submission:  

find --version:
```
find (GNU findutils) 4.9.0
Packaged by Gentoo (4.9.0-r2)
Copyright (C) 2022 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by Eric B. Decker, James Youngman, and Kevin Dalley.
Features enabled: D_TYPE O_NOFOLLOW(enabled) LEAF_OPTIMISATION FTS(FTS_CWDFD) CBO(level=2)
```

When running `make check` on findutils-4.9.0, I get one test failure:
```
FAIL: tests/xargs/verbose-quote.sh
```

Upon further inspection of the test logs in /tests/xargs/verbose-quote.log, I see:
```
--- experr      2023-03-16 18:46:16.428328371 +0000
+++ err 2023-03-16 18:46:16.418328323 +0000
@@ -2,4 +2,4 @@
 './my command' 'hel lo' '10 0' world
 './my command' 'hel lo' '20"0' world
 './my command' 'hel lo' "30'0" world
-'./my command' 'hel lo' '40'$'\n''0' world
+'./my command' 'hel lo' '40$\n0' world
--- expout      2023-03-16 18:46:16.438328420 +0000
+++ out 2023-03-16 18:46:16.421661673 +0000
@@ -2,5 +2,5 @@
 hel lo 10 0 world
 hel lo 20"0 world
 hel lo 30'0 world
-hel lo 40
+hel lo 40$

  1. world

FAIL tests/xargs/verbose-quote.sh (exit status: 1)
```

This test passes when /bin/sh = bash, and fails when /bin/sh = dash.

Sam James <thesamesam>

 

(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 berny (Posted a comment)
  • -email is unavailable- added by thesamesam (Submitted the item)
  •  

    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.

     

    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2024-06-01 berny Fixed ReleaseNone 4.10.0
    2024-06-01 berny Open/ClosedOpen Closed
    2023-05-23 berny StatusNone Fixed
        Assigned toNone berny

    Back to the top

    Powered by Savane 3.13-b921.
    Corresponding source code