Received: from redbook.xen.prgmr.com (redbook.xen.prgmr.com [71.19.146.140]) by gbr-app-1.alpinelinux.org (Postfix) with ESMTPS id D243F225D98 for <~alpine/users@lists.alpinelinux.org>; Tue, 19 Nov 2024 15:13:12 +0000 (UTC) Received: by redbook.xen.prgmr.com (Postfix, from userid 1004) id F1C23110C5C; Tue, 19 Nov 2024 12:00:32 -0300 (-03) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=silas.net.br; s=mail; t=1732028433; bh=wUxlr9fOsXlNo+oroOE9NcdkK03Qxd2ZfPqguhYrmko=; h=Date:From:To:Subject:References:In-Reply-To; b=hW6OL74UqtRWHQ1lx8Y/yFhRsCyu9xOYERTuW9+BPt6XFXERW/p4QdGyac17gOp88 zEev3gDxJZmesPfTS3/0g+syiTBEp87y+9oLNJNNdce5s9t7sTAZPFWxA0ZkPK590C LirdtxVi493O4G5wKA+rTQ8Ex5OaQcPLUeH64TNU= Received: from localhost (unknown [177.104.48.1]) by redbook.xen.prgmr.com (Postfix) with ESMTPSA id 4D1F71109DC for <~alpine/users@lists.alpinelinux.org>; Tue, 19 Nov 2024 12:00:32 -0300 (-03) t=1732028432; bh=PUE3ZGdR+jCfbKhVqDlUWm74NUF2fhKZZt301dxJFYQ=; h=Date:From:To:Subject:References:In-Reply-To; b=b80Z/3f8/z8YfG8EYxuwAD0d+s3mh87EMT5mby0Z7hxmVmDhGo7MLn5qdYUiGzhQR kJMb8tATbP1422YnTj8pQOXBmqQepVBHxeCgUzkYOLbUrAzYPKiOO6tYJLe3ZTKCD6 8tDdbqc6WMvFlGW3VIQwvLpQCaW2//ZOEwU/afk4= Date: Tue, 19 Nov 2024 12:14:42 -0300 From: Silas To: ~alpine/users@lists.alpinelinux.org Subject: Re: Resources for learning shell scripting Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Disposition: inline In-Reply-To: On Tue, Nov 19, 2024 at 03:57:42PM +0100, Paul Zillmann wrote: >Could you recommend any good resources to learn how to script for >POSIX in the first place? >Are there any good websites, books or even man pages available? Hello. Reading different Bourne shell implementations man pages can help a lot. I recommend NetBSD and OpenBSD sh(1) man page. There may be some Alpine specific software written in Bourne shell (openrc? which is actually not Alpine specific...), but I not too familiar with Alpine to recommend any. Reading good implementations of programs writting in Bourne shell can help as well. On the top of my head, I remember acme.sh and NetBSD postinstall programs can be good refereces. There may be other good resources on the web. Some examples: http://www.shelldorado.com/ David Wheeler's articles about shell security, like this one: https://dwheeler.com/essays/filenames-in-shell.html