1. 1

    As soon as I saw this title, I thought: “I wonder if this has anything to do with Brazil”.

    1. 2

      That was deep.

      1. 1

        This article furthers my belief that hardly anyone reads the manual anymore.

        :h

        What version of Bash supports this?

        1. globbing vs regexps

        shopt -s extglob adds some nice expansions.

        1. 2

          This article furthers my belief that hardly anyone reads the manual anymore.

          Could be, at least not the manuals of their shells. I work with Linux systems for a living but I do admit, that I never read the whole bash or zsh manual from top to bottom. Most of my knowledge has been acquired from books, coworkers, and searches. I do often search in the bash manpage before searching online, but I never really stumbled upon the section about :h there until I had a look yesterday after this post.

          (And found quite a few other interesting ones in ‘history expansion / modifiers’)

          What version of Bash supports this?

          Not sure what you mean here. bash 4.4-5 on my debian stretch machine does support it, has it been in the first release already?

          1. 1

            bash 4.4-5 on my debian stretch machine does support it, has it been in the first release already?

            I see the problem. The author’s original post contained an error:

            grep isthere /long/path/to/some/file/or/other.txt
            ls /long/path/to/some/file/or/other.txt:h
            

            This has been removed.

        1. 4

          For more reasons why your language sucks visit theory.org’s YourLanguageSucks wiki page.

          1. 2

            That site seems especially out of date with a lot of things; some of the Ruby stuff was fixed in 1.9, which was back in 2007.

            1. 1

              Feel free to update it ;)

          1. 1

            Never tried Powershell, but I’ve often wondered how its use of objects as input to pipelines fairs.

            1. 1

              I’m no PS expert but day job involves a lot of remoting into Windows servers and fixing problems, and I’m slowly building up a collection of small scripts and oneliners to help me deal with logfiles, etc.

              We also have a lot of tools interfacing with Azure and that’s where the tool/language/environment that is PS really shines.

              For me the impedance mismatch with sh/Unix is quite high. I’m actively working towards not having to wrangle logfiles to improve the overall quality of the product we’re selling, so I’ve not really taken the plunge towards full PS mastery.

            1. 2

              Plus, highlight Rust’s viability as a scripting language for everyday use.

              Nice. I’ve never programmed in Rust, but the first thing I thought when I read the title was: why would I want to use a systems programming language for web scrapping.