From unknown Fri Jun 20 07:11:47 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#33824 <33824@debbugs.gnu.org> To: bug#33824 <33824@debbugs.gnu.org> Subject: Status: coreutils v.8.30 =?UTF-8?Q?=E2=80=93?= An expression part of a cat command is interpreted as "ambiguous redirect" when applied to a target. Reply-To: bug#33824 <33824@debbugs.gnu.org> Date: Fri, 20 Jun 2025 14:11:47 +0000 retitle 33824 coreutils v.8.30 =E2=80=93 An expression part of a cat comman= d is interpreted as "ambiguous redirect" when applied to a target. reassign 33824 coreutils submitter 33824 Ricky Tigg severity 33824 normal tag 33824 notabug thanks From debbugs-submit-bounces@debbugs.gnu.org Fri Dec 21 10:32:27 2018 Received: (at submit) by debbugs.gnu.org; 21 Dec 2018 15:32:27 +0000 Received: from localhost ([127.0.0.1]:58671 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gaMmp-0006bb-5G for submit@debbugs.gnu.org; Fri, 21 Dec 2018 10:32:27 -0500 Received: from eggs.gnu.org ([208.118.235.92]:33966) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gaMmo-0006bM-4S for submit@debbugs.gnu.org; Fri, 21 Dec 2018 10:32:26 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gaMmi-0006In-9g for submit@debbugs.gnu.org; Fri, 21 Dec 2018 10:32:20 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=BAYES_40,FREEMAIL_FROM, HTML_MESSAGE autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:39552) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gaMmi-0006IZ-3V for submit@debbugs.gnu.org; Fri, 21 Dec 2018 10:32:20 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:43573) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gaMmh-0002ZY-Cp for bug-coreutils@gnu.org; Fri, 21 Dec 2018 10:32:19 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gaMmg-0006I2-Pp for bug-coreutils@gnu.org; Fri, 21 Dec 2018 10:32:19 -0500 Received: from mail-ot1-x332.google.com ([2607:f8b0:4864:20::332]:40092) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gaMmg-0006Hi-Ji for bug-coreutils@gnu.org; Fri, 21 Dec 2018 10:32:18 -0500 Received: by mail-ot1-x332.google.com with SMTP id s5so5418080oth.7 for ; Fri, 21 Dec 2018 07:32:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=XdL//6Kf1K6TTPug5avWwTVUnIoumsnoe/rj80wmfao=; b=r2kfK3s8IIjqSvUCkxqVnHY4Z8JNOv3D2Om4W7v6Lyp5MXmQAVXF5rxPDv73Nma74F bQxFnTETgBByGQVb6q4xIF8g0paDcE3R3RN2qJRASU/Wt1AwxAxL1q48E3ZkA4TMsVaR b16HjEsANH0DAnNEAbzwCCp87k3M0PSXmaHo7NXpHjossfcGIqs6Q6w/hPvQX1E41eLc ukCNbBDM1bZHUBF4D65kNAXe4E//XXj2lveGchhpDB7QUmnIMRPKdTT3fCiNlSyZPZSZ f3Btr+mXcIMfDVaKEIUcFKpIU2qfPg62M99drUknQ3sQYT4kIzjY2mqu/gX3YaqYYAMG yyGA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=XdL//6Kf1K6TTPug5avWwTVUnIoumsnoe/rj80wmfao=; b=uV3bF26v9gQfiqvySe7fQL5C+v221MUqsFemHbCiHxKb9a/73lHbq+YFbEeQbKhM34 P9NwxI3whSxHfsokr3btf+0wAgVTA4Y6f1GnCvDcyJeJQV4yVwalrQxYQdy62wNxSnjC UP3IG/ZZ/BHanqLzT+93ml9PZHB6mWejFlMEXpT7r22VS6JEaT3TOw1yXB+Y1kAFpJcL eZYDMymIlUz8JhkLpI3NwvSz0+4zO0EG4VWsZm6w+rzrgKxJXyuwt9Kia8hAfWqFekih ya+PB057Tnyxs+QATykt75FkTGES5CCTQYJo4ODB0ZuDqlO8nqfspHMylM2cxffN+xlh jHtg== X-Gm-Message-State: AJcUukcmi+RzRp48OehAq0ni+Wb25+1YCoQkRdfU1OGgJjUYOIG3hPxS iPnC2d4SBTT5J8a9nwqzuyoAahhgfZ1IDXVtk+fUOzJU X-Google-Smtp-Source: ALg8bN4KCGN66UwK7XnIM/KUUXG63yNLhJAPWMxq8YoDOAL9xZnG64CLr+g/e7s8hbHOdweLzMN/MnaqOieaGHaBzVI= X-Received: by 2002:a9d:c06:: with SMTP id 6mr2030670otr.326.1545406337347; Fri, 21 Dec 2018 07:32:17 -0800 (PST) MIME-Version: 1.0 From: Ricky Tigg Date: Fri, 21 Dec 2018 16:32:06 +0100 Message-ID: Subject: =?UTF-8?Q?coreutils_v=2E8=2E30_=E2=80=93_An_expression_part_of_a_cat_com?= =?UTF-8?Q?mand_is_interpreted_as_=22ambiguous_redirect=22_when_applied_to_?= =?UTF-8?Q?a_target=2E?= To: bug-coreutils@gnu.org Content-Type: multipart/alternative; boundary="000000000000c57510057d89f338" X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) --000000000000c57510057d89f338 Content-Type: text/plain; charset="UTF-8" Component: coreutils.x86_64 8.30. Observation not reported at pixelbeat.org . 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. --000000000000c57510057d89f338 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Component: coreutils.x86_64=C2=A0 8.30. Observation not reported = at pixelbeat.org.

Command execut= ed:
$ cat a* = >> b*
bash: b*: ambiguous redirect

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

Probably a bug. Regards, R.T.
--000000000000c57510057d89f338-- From debbugs-submit-bounces@debbugs.gnu.org Sun Dec 23 00:59:02 2018 Received: (at 33824) by debbugs.gnu.org; 23 Dec 2018 05:59:02 +0000 Received: from localhost ([127.0.0.1]:60443 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gawmz-0005oL-Qu for submit@debbugs.gnu.org; Sun, 23 Dec 2018 00:59:02 -0500 Received: from mail-pg1-f172.google.com ([209.85.215.172]:43056) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gawmx-0005nm-IX; Sun, 23 Dec 2018 00:58:59 -0500 Received: by mail-pg1-f172.google.com with SMTP id v28so4343919pgk.10; Sat, 22 Dec 2018 21:58:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-language:content-transfer-encoding; bh=xiwmA1OSLXsQnVZHXI3Awxppz8C0hYOCcK06nxZDGNY=; b=PEgqxfMoPGkQcJqlgIZAkEKpH3MIWtdblPIbbyQDc7b2HkfdRI2DniWCUfSG3Z7imZ 8T28/rEZZP11//BYLDNUJTHufQrIFGPXPRNQQkVm9atCjcFRuOZAnQ9GFf9lDjumcjpy 0fC4/M7Qt+zTBNbSWCkwQRbGTaiQh8kyjS+HB7+5gnKjlf/HDqvI+OHIhzZajsF9Rd0S Et853nXaweO3/dGgx/bmYnt4DT+6fa3h5I4UFQgObCqd/5fL2CZ1KCfLZ7MBY8GGePBm hNuwrmlHWlHfHxgwuosLT2fUn0jC/ysZAQNjhG/Sd5AuiRBITsdZQIvQDyn72+AVUpV9 BMDA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=xiwmA1OSLXsQnVZHXI3Awxppz8C0hYOCcK06nxZDGNY=; b=oF/M4LKY3aLSMI9zjtSeXKsFryWB/OkA1T4UcFo3oc7xDSOnSZX2ZtJbXclzo0tj81 ifNz7lvo6awsYEhQW/KXm7nCJ2LzRnClf/f8ipInlpZcPMWmSAOkadLj7cbpFDdOkmOu vVMB7U7i0dTxwbMxV800q3qv5qNhDK4QQ4J/ve0E4pohIZHVHb5uvZqvbiWsewq8pGfA C9x4dxXYVe2s+LJEUxZ/Z0PxxGINSw9O4YsWvDfXXLIie7b94Z61m3RII3XqNm3Gvc48 v6TE/gjcj3rveuZ3zkeK9dIHroyIPRfb+JMEdtArKRcy/FXNmDpwH2nct8U+wSglEVFk T35A== X-Gm-Message-State: AJcUukdrIrvHtl/xgLTLXyzUoKAdMpw4fX1cLWhrwCopIAMeButj+HHk RegxUiscj5YICrNvBs5OUJ5Vbj1S X-Google-Smtp-Source: ALg8bN6LUVgQEYdpooYCKRcgGZfgeI4LU76ienPyRfvykEeIEajFu1Tns9NXbhbpXRvGJRNjJWovtg== X-Received: by 2002:a63:4c5:: with SMTP id 188mr8352342pge.391.1545544733362; Sat, 22 Dec 2018 21:58:53 -0800 (PST) Received: from tomato.housegordon.com (moose.housegordon.com. [184.68.105.38]) by smtp.googlemail.com with ESMTPSA id d80sm70376007pfm.146.2018.12.22.21.58.52 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 22 Dec 2018 21:58:52 -0800 (PST) Subject: =?UTF-8?B?UmU6IGJ1ZyMzMzgyNDogY29yZXV0aWxzIHYuOC4zMCDigJMgQW4gZXhw?= =?UTF-8?Q?ression_part_of_a_cat_command_is_interpreted_as_=22ambiguous_redi?= =?UTF-8?Q?rect=22_when_applied_to_a_target=2e?= To: Ricky Tigg , 33824@debbugs.gnu.org References: From: Assaf Gordon Message-ID: <9126cb2a-db8a-933b-c397-9f25675049b5@gmail.com> Date: Sat, 22 Dec 2018 22:58:51 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.3.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 33824 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) 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 From unknown Fri Jun 20 07:11:47 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sun, 20 Jan 2019 12:24:04 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator