From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-4.1 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HTML_MESSAGE,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED,UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 3561 invoked from network); 1 Sep 2021 21:33:18 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 1 Sep 2021 21:33:18 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1630531998; b=kmbO8qAZAxClqKo0mtAxjrPHoYnNvhTY/URyUXRQcPz6MroSSJr42daee7j16Vj60CROXrvsTY g3cpszG2odsaEqZvwatz8W21/YsdZhOTXWnmpVaGYoU05SRPCtR9SroUi0eDm1RWecTafjsBm0 qHYAKSkn+wbvVDTv6pp0yoU9MUJYxOiSbtil86MYDXQbx+dTZLyUD8oeJAiHCc/f/uKzkIyYX1 hlu1Tjlg0bn+8NmT5W137BRZIl//rHe8aydFS/QBkzXnPqDocTQ3HwYrAWvZaXenS8Dma0mpWY KacK/ouQkZNCotSqMJhJflfmurrZ5V++5utbc7jCzXL4ig==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (smtp-fw-9103.amazon.com) smtp.remote-ip=207.171.188.200; dkim=pass header.d=amazon.com header.i=@amazon.com header.s=amazon201209 header.a=rsa-sha256; dmarc=pass header.from=amazon.com; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20210803; t=1630531998; bh=aZcit+pVbrg+8tH8oLmIGHgDUZ56c0ZUn7PWHDHY1qE=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:MIME-Version:Content-Type:Message-ID:Date:Subject:To:From: DKIM-Signature:DKIM-Signature; b=Kohr7798oCtZxUgmYwRWmqk7ZUFUrC9QLz9tPA+vBE7seTHFXcvBhhUbMcwmGdfJApP+kxkJxN k6QscTk8AB9A1G4wGFTPcXNkk+KTj2d/v9/ih8plO/s6r2ChTG8SMv9vKMYtQBK8dec6PyYcqg /dPqclPQBcFO4IvBsusAAFvQ2lC6Ty7SLrJEk0lMzDQIsG4Hh0nWR50yPraTk07GO61dgLEIQk pEhtpbZiaEZsQz67ghw3f5vHOBzzPpLN5MDyUWT9PzpAH0atGEF5OaQkS4BzetyFYTcEWWZgsF XLCRxsJq0st8vviIdURVvGJz2GYyEXzvq67eAarxcv0vnQ==; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=zsh.org; s=rsa-20210803; h=List-Archive:List-Owner:List-Post:List-Unsubscribe: List-Subscribe:List-Help:List-Id:Sender:MIME-Version:Content-Type:Message-ID: Date:Subject:To:From:Reply-To:Cc:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References; bh=DKPAWLQejeuEUsLOIYScmxULjvohJK24zbrvPt9ExyE=; b=oxRuBrYICHfacz9D9yCBvhAiVL fL/cKSZgQA3UYC/MlA+tIHNQ6dKPXElUyN/6Ldp1tJNRPxStjB/ggPrW1NShPOAooc22CzPcho8dy Z9tDSnLvzVUIc5it6a0khKVGnt3Ur7Q1837a5zrJdj0z1uYfq854W0Yn05fE3ZxhK74jna7Fp8pUj XHWAx+R5tL9+lMIz4vgOkQ/rT1D2OCDLgh46XdUkQDtzzRKN0DeaR2vu9ZgjLK7iJtxV1U+AqP2K7 tcVaK3ZVjqOqArfEk8E4FK8MTc64+a+0v31/Us4PcuLzN2b+FqmiGhRCTO71TJ8F2e+6JyZJITPEr IEG/BEMg==; Received: from authenticated user by zero.zsh.org with local id 1mLXrC-000Glu-08; Wed, 01 Sep 2021 21:33:18 +0000 Authentication-Results: zsh.org; iprev=pass (smtp-fw-9103.amazon.com) smtp.remote-ip=207.171.188.200; dkim=pass header.d=amazon.com header.i=@amazon.com header.s=amazon201209 header.a=rsa-sha256; dmarc=pass header.from=amazon.com; arc=none Received: from smtp-fw-9103.amazon.com ([207.171.188.200]:28608) by zero.zsh.org with esmtps (TLS1.2:ECDHE-RSA-AES256-GCM-SHA384:256) id 1mLXqt-000GSK-Be; Wed, 01 Sep 2021 21:33:00 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amazon.com; i=@amazon.com; q=dns/txt; s=amazon201209; t=1630531979; x=1662067979; h=from:to:subject:date:message-id:mime-version; bh=DKPAWLQejeuEUsLOIYScmxULjvohJK24zbrvPt9ExyE=; b=TzcEaOai+QOKzXprk2sved/7VpKtPOtIB2w8ZeobzKlRPMcRn7b601X3 NTe/vnyjDP7YFf/Yes/evKHujCtEGL1/A8ItP+/AbUaWuYEK6sxaTqd0a J0Qz6tb7MjrMFHJvsghtyJV+dSpMRuFZGlb1qPAndOJpmsef+sL0QkTQ5 U=; X-IronPort-AV: E=Sophos;i="5.84,370,1620691200"; d="scan'208,217";a="954673665" Received: from pdx4-co-svc-p1-lb2-vlan2.amazon.com (HELO email-inbound-relay-2a-69849ee2.us-west-2.amazon.com) ([10.25.36.210]) by smtp-border-fw-9103.sea19.amazon.com with ESMTP; 01 Sep 2021 21:32:56 +0000 Received: from EX13MTAUWB001.ant.amazon.com (pdx1-ws-svc-p6-lb9-vlan2.pdx.amazon.com [10.236.137.194]) by email-inbound-relay-2a-69849ee2.us-west-2.amazon.com (Postfix) with ESMTPS id C5306A2102 for ; Wed, 1 Sep 2021 21:32:56 +0000 (UTC) Received: from EX13D27UWB004.ant.amazon.com (10.43.161.101) by EX13MTAUWB001.ant.amazon.com (10.43.161.207) with Microsoft SMTP Server (TLS) id 15.0.1497.23; Wed, 1 Sep 2021 21:32:56 +0000 Received: from EX13D27UWB004.ant.amazon.com (10.43.161.101) by EX13D27UWB004.ant.amazon.com (10.43.161.101) with Microsoft SMTP Server (TLS) id 15.0.1497.23; Wed, 1 Sep 2021 21:32:56 +0000 Received: from EX13D27UWB004.ant.amazon.com ([10.43.161.101]) by EX13D27UWB004.ant.amazon.com ([10.43.161.101]) with mapi id 15.00.1497.023; Wed, 1 Sep 2021 21:32:56 +0000 From: "Le, Vinh-Kha" To: "zsh-workers@zsh.org" Subject: [Bug Report] Erroneous path resolution for `rm /*` Thread-Topic: [Bug Report] Erroneous path resolution for `rm /*` Thread-Index: AdefdM8S02OXRPS5TAyMLgBApvRQzg== Date: Wed, 1 Sep 2021 21:32:56 +0000 Message-ID: <7de6834ef6d245ddb7d3cc881ff5902c@EX13D27UWB004.ant.amazon.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-exchange-transport-fromentityheader: Hosted x-originating-ip: [10.43.162.248] Content-Type: multipart/alternative; boundary="_000_7de6834ef6d245ddb7d3cc881ff5902cEX13D27UWB004antamazonc_" MIME-Version: 1.0 X-Seq: 49365 Archived-At: X-Loop: zsh-workers@zsh.org Errors-To: zsh-workers-owner@zsh.org Precedence: list Precedence: bulk Sender: zsh-workers-request@zsh.org X-no-archive: yes List-Id: List-Help: List-Subscribe: List-Unsubscribe: List-Post: List-Owner: List-Archive: --_000_7de6834ef6d245ddb7d3cc881ff5902cEX13D27UWB004antamazonc_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hello all, I am writing this email to report a bug in Zsh 5.8 that I could not find do= cumented anywhere online. There is a feature that prompts the user for conf= irmation when invoking `rm` with a glob argument. The message usually reads= : ```zsh zsh: sure you want to delete all $n files in $dir [yn]? ``` Running `rm /*` triggers a prompt for the pattern `*` at the current direct= ory rather than at root. This is misleading and could prove disastrous. Steps to reproduce: 1. Ideally, run in a VM. 2. Make sure you have `unsetopt RM_STAR_SILENT`. 3. Run `rm /*` from a non-root directory. Expected prompt: ```zsh zsh: sure you want to delete all $n files in / [yn]? ``` Actual prompt: ```zsh zsh: sure you want to delete all $n files in $(pwd) [yn]? ``` Best, Vinh-Kha --_000_7de6834ef6d245ddb7d3cc881ff5902cEX13D27UWB004antamazonc_ Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

Hello all,

 

I am writing this email to report a bug in Zsh 5.8 t= hat I could not find documented anywhere online. There is a feature that pr= ompts the user for confirmation when invoking `rm` with a glob argument. Th= e message usually reads:

```zsh

zsh: sure you want to delete all $n files in $dir [y= n]?

```

Running `rm /*` triggers a prompt for the pattern `*= ` at the current directory rather than at root. This is misleading and coul= d prove disastrous.

 

Steps to reproduce:

  1. Ideally, run in a VM.
  2. Make sure you have `unseto= pt RM_STAR_SILENT`.
  3. Run `rm /*` from a non-root direct= ory.

 

Expected prompt:

```zsh

zsh: sure you want to delete all $n files in / [yn]?=

```

 

Actual prompt:

```zsh

zsh: sure you want to delete all $n files in $(pwd) = [yn]?

```

 

Best,

Vinh-Kha

 

--_000_7de6834ef6d245ddb7d3cc881ff5902cEX13D27UWB004antamazonc_--