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=-3.3 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 9700 invoked from network); 14 Jun 2021 20:05:27 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 14 Jun 2021 20:05:27 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20200801; t=1623701127; b=XGlVPF1ayJvTdLnUawgKmBz/+v6QdIfelqwsWRlc4XUAVo3Ex8RIHkxQie+JbaI8LaKwZJz1vo cjJ3AS/CjU4aVEjKgbEvTZFykW3gUXp/2IRIZplkMyhPXHjm74o2tuZjcK0J8BXuH1X+V5vuKP NTmQNrnxd5nXL75RkpCeeM550Yw01lU1gClL6Cl2LEBu9lHyKTWBdSiIJBMsi+vQeq0CDu2hDk oWaCWzYGuRMH65SDjLgyZRMGxf1DVG2MzkJyrP3CyDimQY/amOsHh7YRTVs4yE43wY2+Wz6tCY cUYbHb/uGSoYBou3dsiF4hhYPHTYgBsepf6AqutCXIghow==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (relay6-d.mail.gandi.net) smtp.remote-ip=217.70.183.198; dmarc=none header.from=chazelas.org; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20200801; t=1623701127; bh=0V/grLQY1VweFifNbkXK0taw6uRMbTvUIjOKgqpDWdE=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:In-Reply-To:Content-Type:MIME-Version:References:Message-ID: Subject:To:From:Date:DKIM-Signature; b=WQijK+5agYLnY5f35mvRH9bGA5pxppyxp5pUIxj/K5pgMpT+gUCtnUMwOiqszWclF5aggQv4JJ dGbKXyEj2sh0mJIdwt1JUzxoSKmHefY80+1q2LWDTQroINVkPh1TmnrUYtck0pnSU4TUiEmtIk +3akoBzr7VytNqTTSpvvgkpVlFT7AsQZ/72/K8pPW5MqDfKYacbn2NBrUPPJFrGDav4An++Glc cw1TPYWXsGO9rg3/M1nQ9CfWsnKEW/fC7SBqIW91/aM2p2QfPJfEj6Yj4lc6lMCS5uw7uOewpH Xp8vLkqz3c6Vuf1lPsMZRmg6oFknnHC6uSxbK7Jmsyb4GA==; 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:In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:To:From:Date:Reply-To:Cc: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=r59bd66963VH9Q9RHF+7XVsI3UiYscfzGoO0yxoCRVI=; b=lOimPp9YwI/0cecvzZep4wnK9q VcTE4TknSwzs4VFnuz1sQ0WLgGULYWHpH1CFVRwBZSAW2JH4jbfFoXEQjW9TvCyQcZTQsfzWu5xYT ImV8iL4qLw8Ait25GOcZMEY5naEG0l0X45+nhOH6x6whFfaD60gIqf+mLhvtNPd+EbHNaGSkZdKCR gjLsvMW1/3UDxqdPtrXvuMNDjorQk0/RowM5smN++7x5ifXr5m4xc4lqutfiknpTqMH23xGk6Z4Wo YjbsUqr81SbXJkNLlzU6WW9MPzecec1HDPWKprvCJyPBUchEMlk+lvqKHucxYhfqSAFAv9DEex/MA dK7dWieg==; Received: from authenticated user by zero.zsh.org with local id 1lsspq-000JP5-CF; Mon, 14 Jun 2021 20:05:26 +0000 Authentication-Results: zsh.org; iprev=pass (relay6-d.mail.gandi.net) smtp.remote-ip=217.70.183.198; dmarc=none header.from=chazelas.org; arc=none Received: from relay6-d.mail.gandi.net ([217.70.183.198]:41249) by zero.zsh.org with esmtps (TLS1.2:ECDHE-RSA-AES256-GCM-SHA384:256) id 1lsspb-000J7j-Bz; Mon, 14 Jun 2021 20:05:11 +0000 Received: (Authenticated sender: stephane@chazelas.org) by relay6-d.mail.gandi.net (Postfix) with ESMTPSA id 02EEBC0007 for ; Mon, 14 Jun 2021 20:05:10 +0000 (UTC) Date: Mon, 14 Jun 2021 21:05:10 +0100 From: Stephane Chazelas To: zsh-workers@zsh.org Subject: Re: zsh/stat: output file birth time under Linux Message-ID: <20210614200510.df26vewi4qro2vbd@chazelas.org> Mail-Followup-To: zsh-workers@zsh.org References: <20210614120903.GA3136251@cventin.lip.ens-lyon.fr> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Seq: 49081 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: 2021-06-14 14:50:19 -0400, Phil Pennock: [...] > I think the tricky decision is what to do about setting an numerically > indexed array instead of printing or setting an associative array. [...] I agree. There's a risk users do things like: zstat -nLA a -- * printf 'File: %s\n dev: %s...\n target: %15$s\n' "$a[@]" Or while (( $#a )); do print -r -- $a[1] $a[4] ... shift 15 a done (though in practice those behave poorly when any of the (l)stat()s fails, so users would be more likely to run zstat in a loop). Or: zstat -LA s link print -r target: $s[-1] -- Stephane