GNU bug report logs - #33824
coreutils v.8.30 – An expression part of a cat command is interpreted as "ambiguous redirect" when applied to a target.

Previous Next

Package: coreutils;

Reported by: Ricky Tigg <ricky.tigg <at> gmail.com>

Date: Fri, 21 Dec 2018 15:33:02 UTC

Severity: normal

Tags: notabug

Done: Assaf Gordon <assafgordon <at> gmail.com>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 33824 in the body.
You can then email your comments to 33824 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-coreutils <at> gnu.org:
bug#33824; Package coreutils. (Fri, 21 Dec 2018 15:33:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Ricky Tigg <ricky.tigg <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-coreutils <at> gnu.org. (Fri, 21 Dec 2018 15:33:03 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Ricky Tigg <ricky.tigg <at> gmail.com>
To: bug-coreutils <at> gnu.org
Subject: coreutils v.8.30 – An expression part of a cat command is interpreted as "ambiguous redirect" when applied to a target.
Date: Fri, 21 Dec 2018 16:32:06 +0100
[Message part 1 (text/plain, inline)]
Component: coreutils.x86_64  8.30. Observation not reported at pixelbeat.org
<https://www.pixelbeat.org/docs/coreutils-gotchas.html>.

Command executed:
$ cat a* >> b*
bash: b*: ambiguous redirect

Thought the same syntax is used with success when applied only to source
files:
$ cat a* >> b
$

Probably a bug. Regards, R.T.
[Message part 2 (text/html, inline)]

Information forwarded to bug-coreutils <at> gnu.org:
bug#33824; Package coreutils. (Sun, 23 Dec 2018 06:00:02 GMT) Full text and rfc822 format available.

Message #8 received at 33824 <at> debbugs.gnu.org (full text, mbox):

From: Assaf Gordon <assafgordon <at> gmail.com>
To: Ricky Tigg <ricky.tigg <at> gmail.com>, 33824 <at> debbugs.gnu.org
Subject: Re: bug#33824: coreutils v.8.30 – An expression part of a cat command is interpreted as "ambiguous redirect" when applied to a target.
Date: Sat, 22 Dec 2018 22:58:51 -0700
tags 33824 notabug
close 33824
stop

Hello,

On 2018-12-21 8:32 a.m., Ricky Tigg wrote:
> 
> Command executed:
> $ cat a* >> b*
> bash: b*: ambiguous redirect
> 
> Thought the same syntax is used with success when applied only to source
> files:
> $ cat a* >> b
> $
> 
> Probably a bug. 

This is not a bug - it is the result of the shell (not cat)
performing glob-expansion (i.e. the "b*" string expands multiple
existing files whose name starts with "b").

Consider the following example:

  $ touch b1 b2 b3
  $ echo > b*
  -bash: b*: ambiguous redirect


As such, I'm closing this as "notabug".
Discussion can continue by replying to this thread.

-assaf




Added tag(s) notabug. Request was from Assaf Gordon <assafgordon <at> gmail.com> to control <at> debbugs.gnu.org. (Sun, 23 Dec 2018 06:00:02 GMT) Full text and rfc822 format available.

bug closed, send any further explanations to 33824 <at> debbugs.gnu.org and Ricky Tigg <ricky.tigg <at> gmail.com> Request was from Assaf Gordon <assafgordon <at> gmail.com> to control <at> debbugs.gnu.org. (Sun, 23 Dec 2018 06:00:03 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sun, 20 Jan 2019 12:24:04 GMT) Full text and rfc822 format available.

This bug report was last modified 6 years and 151 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.