From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by arlo.cworth.org (Postfix) with ESMTP id 46A5C6DE0BCA for ; Tue, 20 Dec 2016 14:24:55 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at cworth.org X-Spam-Flag: NO X-Spam-Score: -0.006 X-Spam-Level: X-Spam-Status: No, score=-0.006 tagged_above=-999 required=5 tests=[AWL=0.005, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01] autolearn=disabled Received: from arlo.cworth.org ([127.0.0.1]) by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id h616R-jRKstV for ; Tue, 20 Dec 2016 14:24:54 -0800 (PST) Received: from fethera.tethera.net (fethera.tethera.net [198.245.60.197]) by arlo.cworth.org (Postfix) with ESMTPS id 023DB6DE0AAB for ; Tue, 20 Dec 2016 14:24:53 -0800 (PST) Received: from remotemail by fethera.tethera.net with local (Exim 4.84_2) (envelope-from ) id 1cJSpe-0004Qa-L2; Tue, 20 Dec 2016 17:24:26 -0500 Received: (nullmailer pid 26472 invoked by uid 1000); Tue, 20 Dec 2016 22:24:45 -0000 From: David Bremner To: mp39590@gmail.com, notmuch@notmuchmail.org Subject: Re: [PATCH] tests: add compatibility layer In-Reply-To: <20161220194705.46874-1-mp39590@gmail.com> References: <20161220194705.46874-1-mp39590@gmail.com> Date: Wed, 21 Dec 2016 07:24:45 +0900 Message-ID: <87tw9y2q8i.fsf@rocinante.cs.unb.ca> MIME-Version: 1.0 Content-Type: text/plain X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Dec 2016 22:24:55 -0000 mp39590@gmail.com writes: > > +# OS independent functions > +# > +# Alias native BSD utilities to usable GNU equivalents. > +case `uname` in > +FreeBSD) > + # allow using aliases in scripts > + shopt -s expand_aliases > + > + alias date=gdate > + alias base64=gbase64 > + alias gdb=$BSD_GDB > + alias wc=gwc > + alias sed="gsed" > + alias sha256sum=gsha256sum > + ;; > +esac > + What about adding (most of) this to sh.config by the configure script? I'd like to centralize all hacky platform detection there. Also, why is gsed in quotes but none of the others are?