2 ms·
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-stres
by ttyprintk 2y ago
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.
- ttyprintk 2y agoI suppose in POSIX: sudo ifdown ens1 ; ifup ens1 But this one is easier to understand.
- ykonstant 2y agoI think POSIX mv is terrifying enough. I've found it to be much more dangerous than dd or rm.
- systems 2y agowell this is a critic of this one command, but how is it a critic of data oriented shells?
- ttyprintk 2y agoI'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.
- systems 2y agofor the record mv C:/folder will only delete if folder is empty