X-Original-To: alpine-user@lists.alpinelinux.org Received: from mail-qk0-f195.google.com (mail-qk0-f195.google.com [209.85.220.195]) by lists.alpinelinux.org (Postfix) with ESMTP id EE6C55C4E99 for ; Sun, 11 Feb 2018 00:22:21 +0000 (GMT) Received: by mail-qk0-f195.google.com with SMTP id i184so3439665qkf.10 for ; Sat, 10 Feb 2018 16:22:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dereferenced-org.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=84zyqTQ9pYUMHLklGUZvjymRAdbjl+xNF/HfkDILOw8=; b=bLuUQpcV4d53Kd5D6Zr4l+RS+A2Y2uYI7dtIvadhEVEgfVzQPRz8mrKGmZFu4de46/ yn3vjrwi+5s/LY+p2zfWtgqhM4cUNLtuvbLdt8emPyzVm8P02ku8F2AzYQMBtIl9wgi/ N3cE8BDOTVKRbJqXULV39WHViTRjy4Z6LQ2cR3xzhuPkKpYPCrBUmKGcCvk00zF6Sv7T zC59xASNft6rGDL8Qhn4GoidqCVf5eARkCFj6U6beYgQSOlCCrSAnPYzz4Fo6lNCDSK3 FrjO7iaZ4UFuMb5zEoB8jJ0CZuKX24k8IgkgpRj2yDdkZR7myanSyHzoZFFX6TmQAp36 9IYQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=84zyqTQ9pYUMHLklGUZvjymRAdbjl+xNF/HfkDILOw8=; b=mOEXxgtTosxrr8Ve85fIsbCD/Hrbvmwlsl998MnaBxIx1mw2GpimNB9nOmMuU+4Lri T4IUhoC/9iRTeXGLH4kQahacbAHMsInkCePAqInz+ENirfr2YCbXD4vugI4APVAdg7n/ xrc8vnYrwH9gTIz8z9RGdWm0S8u81k+9aiyjoyctlVlZ7WxcocQLGtJee23dzbcxnhO3 3ER49dYe9jeOcNhg/NczwaRzGl8j2w5DFHNYnTF0bkVbtOGRBEFyGMHPeJJVrLpJWNYl 3NsHICIfzqrVtE2DF0vEMcDNbU2lnagIp3IcO6/dgPfBoWRJfL2jxorsg8rOiBAgKkIT PXEA== X-Gm-Message-State: APf1xPDjDyz6ddvBX6qiQsC4VD6PUd0a97EJkH8yUjBH7UYkO6tsjzh8 Jl8+cPgrmm7/+N8SMCXPCXszf4I2PI5RWxeisSnqRbV7 X-Google-Smtp-Source: AH8x226PlS2O8syFQA0lN4EpVQ2TGijVBAyWokTkhZAlwKPO+2w8OxzaiETIYovj8P/CYKX6tqsxnPq5jrTiHRkctns= X-Received: by 10.55.16.196 with SMTP id 65mr11883404qkq.110.1518308541593; Sat, 10 Feb 2018 16:22:21 -0800 (PST) X-Mailinglist: alpine-user Precedence: list List-Id: Alpine Development List-Unsubscribe: List-Post: List-Help: List-Subscribe: MIME-Version: 1.0 Received: by 10.200.39.100 with HTTP; Sat, 10 Feb 2018 16:22:21 -0800 (PST) In-Reply-To: References: <20180210161622.b7jDK%steffen@sdaoden.eu> <20180210192634.KtRv-%ca6c@bitmessage.ch> <20180210220441.fQ_Xb%ca6c@bitmessage.ch> From: William Pitcock Date: Sat, 10 Feb 2018 18:22:21 -0600 Message-ID: Subject: Re: [alpine-user] apk(1) error does not go away To: Laurent Bercot Cc: "alpine-user@lists.alpinelinux.org" Content-Type: text/plain; charset="UTF-8" Hello, On Sat, Feb 10, 2018 at 6:09 PM, Laurent Bercot wrote: > >> Oh, I see. So it's just because you don't like it. I thought there was >> some system-wide limitation or something on Alpine. > > > It's not because someone doesn't like it. It's because it's an > inferior technical choice, teaching you to use non-standard constructs > in your scripts (reducing portability), consuming way more resources > than is necessary, and proven insecure in the past. We care about > quality of implementation, that's why we discourage you from using > bash. There's nothing more to it. > > Using bash makes sense in a few cases, namely when you need the extra > functionality that bash offers over a POSIX shell: for instance, arrays. > But those cases are pretty rare (and those bash scripts can generally > be advantageously replaced with small programs in a real programming > language - lua for instance). Most admin tasks can be achieved with > a POSIX shell, so it's good practice to code for sh, not for bash or > any other specific shell. > > There's no system-wide limitation on Alpine, but bash is not in base; > the default shell is ash, Busybox's /bin/sh, which is compatible with > bash in many ways, but not 100%. If you want to run bash scripts, you > need to apk add bash, which increases the size of your image. > > Of course, you're free not to care about any of this. But attention > to those details is generally why people choose Alpine over other > distributions, so you should expect those arguments to be given on > Alpine mailing-lists. He shouldn't expect to be given unsolicited advice for using bash. It is off-topic (he wanted to know why his package manager broke) and rude (because it is unsolicited). William --- Unsubscribe: alpine-user+unsubscribe@lists.alpinelinux.org Help: alpine-user+help@lists.alpinelinux.org ---