@cassidyjames @funnylookinhat i regret to inform, it just ain’t true. especially if you plan to do anything with those filenames in unix shell later. sure you can backslash escape the spaces, or quote the variables. iyou can also skip the broken step every time you walk down those stairs to avoid breaking your leg. it doesn’t mean any of this is good or safe design.
personally, i prefer to use something like
ls | perl -pe [regex noise] | sh
to generate something like
mv [oldname] [newname]
Second, `rename -n` gives you a verbose previous of what it's going to do. So I use that first to make sure I got it right.
@cassidyjames @funnylookinhat I agree that human friendliness in filenames is important. i am just aggrieved of the way they have been implemented in unix-ish operating systems- by conflating the “human friendly” name with the programmatic reference name in unix shell, leading to a situation where the meaning of the space character is overloaded
@cassidyjames @funnylookinhat it’s less a problem in languages where there is no way to reference a filename without it being quoted, and variables don’t work by substitution into program text, so don’t lull you into the false sense that leaving variables containing filenames unquoted is safe.
still, pain in the ass to have to replace spaces with %20 in urls to get that 100% xhtml compliance score.
(Most other shells, notably Bash, you have to dance around, set IFS, and such.)
And/or use GUI tools.
(I do both: I try to use graphical tools mainly and also use fish at the command line. And I also have lots of spaces in file names too.
If I write a script for others, I use sh/bash and shellcheck.)
@garrett @cassidyjames @funnylookinhat
I pine for a tool that doesn't exist, where I can type in my shell script and the script actualises into a blocks based visual programming language program. A a bit of templating and hypercard inspired gui design later and you have a nicely packaged up gui tool for entering parameters into the script and rerunning it at will.
That's the sorta thing, except there's plenty of legit criticisms of visual programmingn in general, and scratch-style thingies in particular, which is why I have in my head some magical system where the blocks are somehow also a kind of rich text. Like halfway between intellisense and blockly.
@zens @cassidyjames @funnylookinhat the whole "no spaces in filenames" is dorky FUD. I've had my music library organized with proper filenames for more than a decade. Same with video games. Software that can't deal with spaces in filenames is buggy and broken software (like some old MojoSetup installers). Only reason not to have spaces in filenames is because they look like crap when served over HTTP, but otherwise it's perfectly fine.
Server run by the main developers of the project It is not focused on any particular niche interest - everyone is welcome as long as you follow our code of conduct!