News for hackers. Stuff that matters.
Re:The growth of command-line options, 1979-Present by oefrha on Tuesday March 03, 2020 @10:11AM (#22475007)
If you believe mkdir -p is completely unnecessary for normal users and only exists for scripting, you probably want to think about how it might fit into your workflow again. In fact, my mkdir is simply aliased to mkdir -p, and I have a self evidently-named wrapper function called mkcd which I use even more often than mkdir.
Re:The growth of command-line options, 1979-Present by tclancy on Tuesday March 03, 2020 @10:14AM (#22475040)
I immediately second-guessed my use of "Obviously completely"-- what I meant was "We can get by without it" whereas a standalone script cannot.
Re:The growth of command-line options, 1979-Present by oefrha on Tuesday March 03, 2020 @10:18AM (#22475070)
Well a script can do path parsing too, it’s just rather painful. Similar (actually more complex) real world task that does get implemented in POSIX sh: realpath(1) replacement, when it doesn’t exist.
Re:The growth of command-line options, 1979-Present by AnIdiotOnTheNet on Tuesday March 03, 2020 @11:35AM (#22475996)
Since one can alias commands to functions, that does suggest that in fact mkdir -p is actually unnecessary.
Re:The growth of command-line options, 1979-Present by oefrha on Tuesday March 03, 2020 @01:11PM (#22477099)
High level languages aren’t necessary because you can program in assembly too.
Re:The growth of command-line options, 1979-Present by pas on Tuesday March 03, 2020 @01:01PM (#22477008)
But then you would have to bring your own aliases everywhere. And common aliases just got upstreamed.
Re:The growth of command-line options, 1979-Present by jmmcd on Tuesday March 03, 2020 @10:27AM (#22475183)
Wait, what does mkcd do?
Re:The growth of command-line options, 1979-Present by Joker_vD on Tuesday March 03, 2020 @10:45AM (#22475402)

    function mkcd() {
        mkdir -p -- "$1" && cd -P -- "$1"
    }
Re:The growth of command-line options, 1979-Present by zimbu668 on Tuesday March 03, 2020 @10:39AM (#22475320)
I'm guessing makes a directory, with paths, then cds into it.
Re:The growth of command-line options, 1979-Present by twanvl on Tuesday March 03, 2020 @10:44AM (#22475389)
I assume `mkdir $@ && cd $@`