[HN Gopher] Ask HN: A Bash guide for Posix shell programmers?
       ___________________________________________________________________
        
       Ask HN: A Bash guide for Posix shell programmers?
        
       I've been programming POSIX shell for a while and know pretty much
       all of it (the spec isn't that long: https://pubs.opengroup.org/onl
       inepubs/9699919799/utilities/V3_chap02.html). I mostly stayed away
       from Bash because of the "it runs everywhere" promise of POSIX but
       recently I've realized that most of the scripts I write will
       probably always run on machines with Bash installed anyways. I'm
       looking for a guide that explains Bash features specifically and
       doesn't go over the whole shell programming basics again. I know
       some features here and there, e.g. I know that Bash has arrays and
       a syntax to redirect the contents of a variable to a file, but I'm
       looking for a comprehensive list of what's possible. Are there any
       resources you can recommend?
        
       Author : tschumacher
       Score  : 3 points
       Date   : 2023-12-17 20:19 UTC (2 hours ago)
        
       | haltist wrote:
       | Learn Bash the Hard Way by Ian Miell
        
       | tschumacher wrote:
       | It turns out the Bash manual groups the Bash specific features
       | into its own chapter [1] and it's a short read and also there are
       | not nearly as many Bash specific features as I thought.
       | 
       | [1] https://www.gnu.org/software/bash/manual/bash.html#Bash-
       | Feat...
        
       | 1vuio0pswjnm7 wrote:
       | Bash is slower. That's why a major Linux distribution would
       | switch to NetBSD sh. On a Linux distribution, bash is always
       | going to be in the userland. But for scripting it's big and slow.
        
       ___________________________________________________________________
       (page generated 2023-12-17 23:02 UTC)