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=-1.3 required=5.0 tests=BUG6152_INVALID_DATE_TZ_ABSURD,DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FROM,INVALID_DATE_TZ_ABSURD,MAILING_LIST_MULTI, MALFORMED_FREEMAIL,RCVD_IN_DNSWL_MED,UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 7116 invoked from network); 7 Jan 2021 02:46:52 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 7 Jan 2021 02:46:52 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20200801; t=1609987612; b=MX64STMSm/CMvceNpI3yMgMG26ELlCCsvdfJBNXUKj4TFjnDDM1WejSgqeZxDBLpfK0dj4gvky 5e8rz7+aEdd2G0yVfLAJBnrLV6QJR65EH9zcrjmQST6baJnUBImPg4yZ/4IQcowG7OiU1/4wmR MGO74JlFlk6L6b+EknIRi6faQhTK+amLkOoEmC18i8aQxoJnN0vQwp2UqK8O76AB7IaRoglmu9 nXtczMK/9pkPF5dzBJyY0eSAwE5FYco7TMwPJu/UoK3j6gC2i67js6BDWwb0NzuPGw8fIwSvSA x/aw/i9K42nHLgISLm5cQMQ5ekPesPl4T3tQll1MqxlsLw==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mail-pl1-f174.google.com) smtp.remote-ip=209.85.214.174; dkim=pass header.d=gmail.com header.s=20161025 header.a=rsa-sha256; dmarc=pass header.from=gmail.com; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20200801; t=1609987612; bh=Kh6t5qCN2eOmPWI4uCXnOI8Iqz6GxFU8GjTUfUxCuBM=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Message-ID:From:Date:Subject:Cc:To:DKIM-Signature: DKIM-Signature; b=NWY3c5eXdA6yEdBfuISsDTxolVRpensLMImxqHlGh0LqlAop90HVEgBj5nOMPZg24bQhR99A/M KDZ+I+MVD4C5Rv8nU+O7CibkeBse0AUxZ9itewlxqXkqAci+M1E3vBENTYTE6fIyiihhmqFhCl uhHvBQd1L4jLLeiLFwoLZDIV59dW8xT6iUYvAZZjOrbNEio1jdAQdTfPZSH001sKpEWg9zpSSu dsOHenGFf88wTbownbM7IR9I4YCCSZSFQmnr1yMukV7XUFF2NhUcZ7kOvHTEILGQRqtA8uPjaF rLUFo4a+wXMxmvrSBUZXDRNS2pI3Kxx/QgbhAtI2AZpprA==; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=zsh.org; s=rsa-20200801; h=List-Archive:List-Owner:List-Post:List-Unsubscribe: List-Subscribe:List-Help:List-Id:Sender:Message-ID:From:Date:Subject:cc:To: Reply-To:MIME-Version:Content-Type: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=qT4E361cc+5rjnQE04Q4gWekUwnYt8Thz1lbdkWDVs8=; b=WrrtOzyojmhrpQ2cjv6ysuEo/6 pF/7ARjIVQo4GK9oY75V2jCOeDJglFVAgjH1RNhWx1tFQPKwPga6UEUhkmNAa/7zMdClWPnpCg3vC JfSWPr62SHcUQLPLbeuU5/x0YX94p1676dzSdMdOc+DGVsfEiy1HgT25mHlZQjH7yrMJ/rY8OU76V VVhKqkmAXfMEyWGp5IVelA7DH037UzwB3dTAAJauadAx/4C5citZ+10fiC2s4CmTk+9Dgv+3D3sa8 MnP5jaT62uqw49qwcxiRJfKBzIcjIuXRguJxAokhNWy2N/MmzvIsnMJ9aZGf9xWOxdu3eE8/ZEI3c AI/PeloQ==; Received: from authenticated user by zero.zsh.org with local id 1kxLK5-000Dx7-A9; Thu, 07 Jan 2021 02:46:49 +0000 Authentication-Results: zsh.org; iprev=pass (mail-pl1-f174.google.com) smtp.remote-ip=209.85.214.174; dkim=pass header.d=gmail.com header.s=20161025 header.a=rsa-sha256; dmarc=pass header.from=gmail.com; arc=none Received: from mail-pl1-f174.google.com ([209.85.214.174]:41918) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1kxLJb-000DZC-0U; Thu, 07 Jan 2021 02:46:20 +0000 Received: by mail-pl1-f174.google.com with SMTP id y8so2683578plp.8 for ; Wed, 06 Jan 2021 18:46:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=to:cc:subject:date:from:message-id; bh=qT4E361cc+5rjnQE04Q4gWekUwnYt8Thz1lbdkWDVs8=; b=W4gcthxGIkR6zlS/wBzzcYEtPUNj0JEco6JvrNxBqvLRzzQWgVV11v7l4iBU44Vu+V WCfII0znoHVp65zUrc16Xggbga45yrpKakEmguXX9X0tzfhyf20lSScqHFQN/MUt59RS kh9ioRqndOE+0jlSKg8GLCFlEunSlh8dKLumFMLxVP9A56PNeDoRz3Eg3TArLDElGbYY IIkTOvpOcbAprlPMvDbOgsDN5SZSAFl/ot3vAsv/xZFE87Bi2wc9PtRFFRmrcesECSy7 CG0VlaUXEABjH/oy3VsKlSTzADeEz7wQTG9LekIvhAeIWlCvRunxCjlodPUysHwxn4AQ TB8g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:to:cc:subject:date:from:message-id; bh=qT4E361cc+5rjnQE04Q4gWekUwnYt8Thz1lbdkWDVs8=; b=sE3a7tHD6ailLLrfUmKtaXxF5XeNQLZuSYzyEK8qbqGu0ETkBjJqwDU/Vbz2VPUgwW gHpSqDUdiOI99O++pjnXF1RPQPjg26wJYSryLq53US6Vijh722KOOhZj4hxtomrskDEF cIMfDL0rf1bWKO45SMTVMSNjOursqRcVKaZ2OeJ4sq2iysJgSaVTDfLdl/vJdDKsdiAC loxI2HqUf3S7EpBJ4rdGUMGL4Ro42N45YNBs1YZKpCUpGBa44J+NJRgGDJig7tclM1FR cJI05RFRbTN2qUJWrdw7AuJCmVl6wJbsy1VkEBy+CfSM8xEXbNAwQemk+vfJd6sUTlhz 4iBw== X-Gm-Message-State: AOAM530pFcDtogtCFgLRxnvZA64UiyeydIhE1LdzI2Q+QvxGN6gVxgGj yyAIh5o1oz0LqIlFZO4P9dBpIKVjZdI= X-Google-Smtp-Source: ABdhPJzderx4NhBxggRlITY6SIhrZu5aigH93Xak1HlxnyIURz9z8tzRM4/O/KIXnWTuupXZA/FQmA== X-Received: by 2002:a17:902:c195:b029:db:c725:2522 with SMTP id d21-20020a170902c195b02900dbc7252522mr7040288pld.83.1609987576860; Wed, 06 Jan 2021 18:46:16 -0800 (PST) Received: from binki ([172.58.38.252]) by smtp.googlemail.com with ESMTPSA id y15sm328030pju.13.2021.01.06.18.46.15 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Jan 2021 18:46:16 -0800 (PST) To: cc: Subject: cml invocation vs script output diff X-Mailer: MH-E 8.6+git; GNU Mailutils 3.11; GNU Emacs 27.1 Date: Wed, 06 Jan 2021 18:46:13 +4000 From: "jdh" Message-ID: <20210106184613.19412@binki> X-Seq: 26340 Archived-At: X-Loop: zsh-users@zsh.org Errors-To: zsh-users-owner@zsh.org Precedence: list Precedence: bulk Sender: zsh-users-request@zsh.org X-no-archive: yes List-Id: List-Help: List-Subscribe: List-Unsubscribe: List-Post: List-Owner: List-Archive: Archived-At: zsh vers: zsh 5.8 (x86_64-pc-linux-gnu) Bug: Different results from command line, cml invocation, versus a zsh script file. Test case to demostrate this follows: I don't think that zsh is descending down into . prefixed directories in the script version even with a explict -a given as ls's argument. --------- mkdir .hiddendir touch .hiddendir/tilde-file~ ls **/*~ Recursively find all tilde ending filenames starting with the cwd. This above works as it should, but, echo '#! /bin/zsh \n ls **/*~' >lstildefiles chmod 700 lstildefiles ./lsttildefiles Doesn't work and returns: $ ./lstildefiles:2: no matches found: **/*~ This shouldn't happen. Why does invoking the same command with the same agrumetns from within a script and the command line differ. The script version is clearly not functioning properly in my opinion. But I can't figure out why. ?