News for hackers. Stuff that matters.
Re:Safe ways to do things in bash by h1d on Tuesday May 15, 2018 @04:30AM (#17072492)
It's time we need a better shell than bash instead of thinking it's great after bleeding with it for years and gets used to it.
Re:Safe ways to do things in bash by JdeBP on Tuesday May 15, 2018 @12:10PM (#17075012)
We have just had the 30th anniversary of someone acting upon that very thought.

> Perl is a interpreted language optimized for scanning arbitrary text files, extracting information from those text files, and printing reports based on that information. It's also a good language for many system management tasks. The language is intended to be practical (easy to use, efficient, complete) rather than beautiful (tiny, elegant, minimal). It combines (in the author's opinion, anyway) some of the best features of C, sed, awk, and sh, so people familiar with those languages should have little difficulty with it. (Language historians will also note some vestiges of csh, Pascal, and even BASIC-PLUS.) Expression syntax corresponds quite closely to C expression syntax. If you have a problem that would ordinarily use sed or awk or sh, but it exceeds their capabilities or must run a little faster, and you don't want to write the silly thing in C, then perl may be for you. There are also translators to turn your sed and awk scripts into perl scripts.

-- Larry Wall, perl 1.0 release announcement, comp.sources.unix v13i001, 1988-01-02.

Re:Safe ways to do things in bash by brazzledazzle on Tuesday May 15, 2018 @05:00AM (#17072613)
I’d vote for PowerShell in a heartbeat. It passes real objects instead of strings. It’s cross platform and open source. It’s imperative but borrows some functional concepts.
Re:Safe ways to do things in bash by agumonkey on Tuesday May 15, 2018 @06:23AM (#17072905)
PowerShell is good. I don't like some of the hardened conventions .. but it's highly convenient without being a mess. Nice output, regular sort/filter functions. I like sed but it goes old quickly.
Re:Safe ways to do things in bash by freedomben on Tuesday May 15, 2018 @05:45PM (#17078136)
I really wonder if PowerShell wouldn't have been much bigger had it been cross-platform from the start. Definitely better late than never (:clap: Microsoft) but at least in my sphere we never even thought seriously about PowerShell because we had too many linux machines in our environment.
Re:Safe ways to do things in bash by zwischenzug on Tuesday May 15, 2018 @02:52PM (#17076613)
As I say in the talk (and get a big laugh) 'Powershell is boring. It's too well-designed.'
Re:Safe ways to do things in bash by zwischenzug on Tuesday May 15, 2018 @02:55PM (#17076640)
The title 'bash is awesome' was explicitly _not_ what I wanted it to be called. If you watch the talk you'll see what I meant.