From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15802 invoked by alias); 13 Dec 2015 02:19:37 -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: 37395 Received: (qmail 9142 invoked from network); 13 Dec 2015 02:19:35 -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,FREEMAIL_FROM, T_DKIM_INVALID autolearn=ham autolearn_force=no version=3.4.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.co.uk; s=s2048; t=1449972783; bh=mWD88WMCjadHhWNcswUEaJWVW7izNOzCDWruejrbUcU=; h=In-reply-to:From:References:To:Subject:Date:From:Subject; b=mn6cI3i8sDZqcd0BHNAIhqnLNIbeCPLFj9Tr6RTX2zP8wUQBizSekpRnztSifLOKSX3AaykDLGl6KV+6L2oGrwQxm+zvQRdlZOG8fOEYUKtkgFQQhO+s8uARLxbMCDA3L6QRV5sxFsVTRfFHnUh33hifQsPOSu2ISdd30YWJ/aLySpOZIqVo46IjOwaOvkIKninuP59qDhVHm14HmhECNYciWYMIaTqHh26MaRkgFa+j7lX03PL89qHrX0QG23TE4QEnGQYnjF3gflTlYJNyCA7FdT6kn4+YN79esfH7afSPKk+i6+wEoNva9a66ZXSjOuKnaV181EvkMNtYHqN40w== X-Yahoo-Newman-Id: 643824.16886.bm@smtp132.mail.ir2.yahoo.com X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: cGc35.cVM1kgRQPI4K3NpWZa7xYuXON7GRpnTm4bYCMmZbM hUYfkIRqdXGfTupmBDlSXmFioli1BgBjHqytAQrsYLH3MT07IdlKMJiCKaYA XaT64gaVvDxmRbL0xZH1GjObMPCOHjAgkO5w9OCWtDstzXR2QfzyIliPvrX4 GfeJBL_8yj7zUfo865N8vpsC9.JDuzPHW1U7MGZ0Bd4bjTukL6SMI_DtVRer YTuV21ysQ._Y.vEH_dFK5gIoDZtyL.M7RwajsxnarLSk356G3kWTCdMy1opU BHvkiwUpfUP6JwQ4PwSJ2JyO06Kn37QfZNC__eBDiZV_CZai7qI7NrNH7gQ5 JwJIh.gAxT4aegcgzB4zYPwTPMunswg2wtDn0pVTPiihGczrGvl5gcvifMBb QK_gth5dSXHMibnkgj1z4Of1GJsb0XEzay3Xbl_PO78GtHQs._OV8qppvdcd I3WwHZS9Marrbr3GKTrb9N2OMEFS6m6kksmDQVMvC_aQsp31F6HrAwIbJaEH 1Mk5XVMvteQ5vKrzcx3dMXvPLBT0A6xpB X-Yahoo-SMTP: opAkk_CswBAce_kJ3nIPlH80cJI- In-reply-to: <151211224922.ZM4583@torch.brasslantern.com> From: Oliver Kiddle References: <566272DD.6010305@gmx.com> <56632A3A.6000002@gmx.com> <11850.1449365147@thecus.kiddle.eu> <151210004823.ZM29850@torch.brasslantern.com> <151210005516.ZM29920@torch.brasslantern.com> <18080.1449807713@thecus.kiddle.eu> <151211224922.ZM4583@torch.brasslantern.com> To: zsh-workers@zsh.org Subject: Re: [PATCH] portable mechanism to determine noatime MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <26915.1449972782.1@thecus.kiddle.eu> Date: Sun, 13 Dec 2015 03:13:02 +0100 Message-ID: <26916.1449972782@thecus.kiddle.eu> Bart wrote: > Searching for a full line rather than only for one word avoids the btrfs > issue you mentioned, among other things. I was concerned that the reported sizes mightn't be identical between two runs of df. On testing this difference, I'm finding that the df output isn't matching but for a different reason. df is adjusting the column widths according to maximum lengths of fields. That ends up varying between the one fs run and the multple fs run of df. That can be solved by piping to tr -s ' ' or wrapping it in ${=...}. There are also cases where after a particularly long device, df outputs a newline so one entry is split over two lines. Solaris is clever enough not to do this when outputting to a pipe but it occurs on at least Linux. In practice, I don't think this matters because it will occur for both the df runs and the last line is sufficient for fgrep. > Is there a reason the single >&/dev/null isn't enough to throw away all > the spurious output? The additional two >&/dev/null that you added to > your edit only do the expected thing if multios is set (which I guess > it would be, in context, but still). Each was necessary for silencing something or other but I agree that putting everything in braces and having a single redirection is better. Oliver