• mech@feddit.org
      link
      fedilink
      arrow-up
      1
      ·
      6 hours ago

      Them: Read The Fucking Manual!

      The Manual
                           The unset builtin treats attempts to unset array
                           subscripts @ and * differently depending on whether
                           the array is indexed or associative, and differently
                           than in previous versions.
                    •      Arithmetic commands ( ((...)) ) and the expressions
                           in an arithmetic for statement can be expanded more
                           than once.
                    •      Expressions used as arguments to arithmetic
                           operators in the [[ conditional command can be
                           expanded more than once.
                    •      The expressions in substring parameter brace
                           expansion can be expanded more than once.
                    •      The expressions in the $((...)) word expansion can
                           be expanded more than once.
                    •      Arithmetic expressions used as indexed array
                           subscripts can be expanded more than once.
                    •      test -v, when given an argument of A[@], where A is
                           an existing associative array, will return true if
                           the array has any set elements.  Bash-5.2 will look
                           for and report on a key named @.
                    •      The ${parameter[:]=value} word expansion will return
                           value, before any variable-specific transformations
                           have been performed (e.g., converting to lowercase).
                           Bash-5.2 will return the final value assigned to the
                           variable.
                    •      Parsing command substitutions will behave as if
                           extended globbing (see the description of the shopt
                           builtin above) is enabled, so that parsing a command
                           substitution containing an extglob pattern (say, as
                           part of a shell function) will not fail.  This
                           assumes the intent is to enable extglob before the
                           command is executed and word expansions are
                           performed.  It will fail at word expansion time if
                           extglob hasn't been enabled by the time the command
                           is executed.```  
      
    • Klear@quokk.au
      link
      fedilink
      English
      arrow-up
      4
      ·
      2 days ago

      It’s not meant as an actual manual. What you’re really supposed to do is comb through ad-ridden google results until you find that one 10 years old reddit thread where someone thanks a deleted comment for solving the issue you have.

      • raspberriesareyummy@lemmy.worldOP
        link
        fedilink
        arrow-up
        3
        ·
        2 days ago

        until you find that one 10 years old reddit thread where someone thanks a deleted comment for solving the issue you have.

        I wasn’t gonna upvote you, but that one made me chuckle. Also because I have posted many of those “deleted comments” and wiped my reddit profile as clean as I could before leaving years ago.

    • BassTurd@lemmy.world
      link
      fedilink
      arrow-up
      3
      ·
      2 days ago

      The only time it’s been kind of relevant in my dealings is the Arch wiki, because it really is a solid resource. However, sometimes my issue is a specific one and I need more than general information on a process. RTFM ruins communities when someone is looking for support. It’s just an entitled response to someone asking for help.