A semantics for Bash scripts?

后端 未结 3 679
悲&欢浪女
悲&欢浪女 2020-12-07 07:56

More than any other language I know, I\'ve \"learned\" Bash by Googling every time I need some little thing. Consequently, I can patchwork together little scripts that appea

3条回答
  •  我在风中等你
    2020-12-07 08:13

    The bash manpage has quite a bit more info than most manpages, and includes some of what you're asking for. My assumption after more than a decade of scripting bash is that, due to its' history as an extension of sh, it has some funky syntax (to maintain backward compatibility with sh).

    FWIW, my experience has been like yours; although the various books (e.g., O'Reilly "Learning the Bash Shell" and similar) do help with the syntax, there are lots of strange ways of solving various problems, and some of them are not in the book and must be googled.

提交回复
热议问题