Project

General

Profile

Actions

Bug #13452

closed

Incorrect wildcard expansion in /usr/bin/sh

Added by David Cantrell about 1 year ago. Updated about 1 year ago.

Status:
Rejected
Priority:
Normal
Assignee:
-
Category:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Difficulty:
Medium
Tags:
Gerrit CR:

Description

Given this directory structure:

$ find foo -type f
foo/bar.txt
foo/1/2/bar.txt
foo/1/bar.txt

I would expect this shell expansion:

$ echo foo/*.txt foo/*/*.txt foo/*/*/*.txt
foo/bar.txt foo/1/bar.txt foo/1/2/bar.txt

But when the shell is /usr/bin/sh I get this instead:

$ echo foo/*.txt foo/*/*.txt foo/*/*/*.txt
foo/bar.txt foo/./bar.txt foo/1/bar.txt foo/../foo/bar.txt foo/././bar.txt foo/./1/bar.txt foo/1/../bar.txt foo/1/./bar.txt foo/1/2/bar.txt

Actions

Also available in: Atom PDF