From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6573 invoked by alias); 10 Dec 2015 08:48:17 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 37373 Received: (qmail 16043 invoked from network); 10 Dec 2015 08:48:14 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,T_DKIM_INVALID autolearn=ham autolearn_force=no version=3.4.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20150623.gappssmtp.com; s=20150623; h=from:message-id:date:in-reply-to:comments:references:to:subject :mime-version:content-type; bh=rnd0iLXlZrSvuW0fwUskHpj29XxlgJE/1ZzozRCFNhs=; b=km2wqb7MCu1sPLugabLcS8j7IDDh7s6Q4BZrX2BBTDS9ma0enpD3J3GegcfuJX4sCL QBffKnoU3TxFNSi73bhOVuZoafNPWQmnPfQNd/ny+mgidBZ9jqY1OutBXjKypWbNnPxo HmiqdHEMkKJJaAiT8uZEsKYdSGccN/agY54k5KDbIQb8kjO1iza0upAAjdyx2niu1rzH QdCbwqCd3um0b7tnFVErpneKUt7Fbnb+kyjnch+Y4tJWEGco3bpXs+O+sgcwTTjtTVWv o91bUxWL5PkK2IccRb8QFK+Aj36FYExZAHOn0C/rfLNWOD9/xxDjUq6yh9ePMM6IDEQW XMLw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:message-id:date:in-reply-to:comments :references:to:subject:mime-version:content-type; bh=rnd0iLXlZrSvuW0fwUskHpj29XxlgJE/1ZzozRCFNhs=; b=YEtah2M3+ikHzJWfgWYHi6n9IUSeVSy6kl+z8yIYY7t/tCc9gAxlHUbW3YfWOUfZKB X1gHVESI53A37Wb+KZCu7ZBBqQDE10tgex1DW6Eoh+OV8Lw/IiN5K9MZWsZNDVKhqm42 m0oaUUJBNdo3TP2IkXKf7u1f0giRsmteSQs4P9VjfAsBrz8MtBY00rQXF0+mS2Gmy57M Rgk8WjIIwDCBazgqGFextDvaMDSzhDoZ8sAE5JDWZgTrjynMYNoRM6gfb5Mx6yGdkCvg pNNoBD5fZN2bcrpHgrcQUJuAqIbCF9umgpRTwF1195xVrrVMnXRx9FR2QOopNFdDZsEL Fi0g== X-Gm-Message-State: ALoCoQnRsQBsM1ca56J6QV0LScyuHjz/BQ1WvTW45Lotg8tEmUqWQB1cDTj7jsXD8mgdaMINqRacPj4jdd5HDB7qJmAm40A8XQ== X-Received: by 10.98.9.88 with SMTP id e85mr4968182pfd.7.1449737291526; Thu, 10 Dec 2015 00:48:11 -0800 (PST) From: Bart Schaefer Message-Id: <151210004823.ZM29850@torch.brasslantern.com> Date: Thu, 10 Dec 2015 00:48:23 -0800 In-Reply-To: <11850.1449365147@thecus.kiddle.eu> Comments: In reply to Oliver Kiddle "Re: [PATCH] portable mechanism to determine noatime" (Dec 6, 2:25am) References: <566272DD.6010305@gmx.com> <56632A3A.6000002@gmx.com> <11850.1449365147@thecus.kiddle.eu> X-Mailer: OpenZMail Classic (0.9.2 24April2005) To: zsh-workers@zsh.org Subject: Re: [PATCH] portable mechanism to determine noatime MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii On Dec 6, 2:25am, Oliver Kiddle wrote: } } mount output has the filesystem in $1 and device in $3: opposite of Linux/BSD } - perhaps grep for the filesystem with a trailing space I was thinking about this. Couple of remarks/suggestions: - Why don't we grep "mount" output for "noatime" FIRST, and THEN test whether [[ $(df .) = $(df $atimeFS) ]] ? - Given that, maybe we don't need to care about $1 vs. $3. Thus: { df $(mount || /sbin/mount | awk '/noatime/ {print $1, $3}') | fgrep "$(df .)" } >&/dev/null