Live data from Hacker News

Advanced Bash-Scripting Guide

tldp.org

11–17 of 17 posts

Re: Advanced Bash-Scripting Guide

#11
post #4

last update 2014 that being said, it think 10 years later, linux should pick a data oriented shell (powershell or nushell) and go full in on it on windows, almost all services have some Powershell support i understand that on linux, command line support is always there, so unlike windows adding command line support is not really news, but still i think the move to a data oriented shell, is better

On Windows, mv s:\src d:\dest Works as you expect. Now on some unimportant directory try: mv s:\src I have to think hard about an equivalently-stressful typo on another interactive shell.

well this is a critic of this one command, but how is it a critic of data oriented shells?

Re: Advanced Bash-Scripting Guide

#12
post #11

Earlier quoted context omitted.

On Windows, mv s:\src d:\dest Works as you expect. Now on some unimportant directory try: mv s:\src I have to think hard about an equivalently-stressful typo on another interactive shell.

well this is a critic of this one command, but how is it a critic of data oriented shells?

I'm probably just cranky. Moving files is a universal use-case, i.e. xargs predates Bourne. Maybe PowerShell hasn't arrived at the amount of reliability testing we expect from a data utility. If I saw it being used as such, I would ask for many assertions for both data manipulation and filesystem traversal.

Re: Advanced Bash-Scripting Guide

#15
post #11

Earlier quoted context omitted.

well this is a critic of this one command, but how is it a critic of data oriented shells?

I'm probably just cranky. Moving files is a universal use-case, i.e. xargs predates Bourne. Maybe PowerShell hasn't arrived at the amount of reliability testing we expect from a data utility. If I saw it being used as such, I would ask for many assertions for both data manipulation and filesystem traversal.

for the record

  mv C:/folder 
will only delete if folder is empty

Re: Advanced Bash-Scripting Guide

#17
post #14

I used to read this cover to cover when I first learnt bash. But I later found that its advice can be subpar from time to time. There are better resources in learning bash.

And those are?

Sorry, not going to go into details here. But I think the statement is not controversial. There’s probably well written criticism on it somewhere.

But then it wasn’t a bad starting point. I don’t have a better book to recommend. There are wikis with better info. But not in the form of a book which is also free I think.

Post reply on HN