I\ don\'t\ know\ what\ you\ mean,\ I\'ve\ never\ encountered\ any\ annoyances.
'I don\'t know what you mean, I\‘ve never encountered any annoyances.’
Single quotes don’t allow any escaping in shell, you need
'I don'\''t know what you mean, I'\''ve never encountered any annoyances'
Or, in Zsh with
setopt rcquotes
:'I don''t know what you mean, I''ve never encountered any annoyances'
Oh right, good catch. That’s me shell scripting while in a meeting. 🫠
Good use of a meeting to be fair
it works in fish
I very intentionally have all my code in
Personal Projects 🥰
andWork Projects 🏦
directories so I can find bugs in the handling of file paths.not sure why the default behavior is this:
file\ name\ with\ a\ bunch\ of\ spaces
instead of this:
"file name with a bunch of spaces"
but you can just press
"
before pressing tab to auto-complete, and it will use the 2nd formBecause quoting requires token expansion (e.g. ~ to /home/you). Escaping gives you a much shorter path in that case.
That said I’m with you, full quoted paths read better to me.
My work has me working with Matlab Simulink paths, which may (and sometimes actually do) contain newlines.
Can’t relate. I use shell all the time, and I always use spaces in file paths, especially to make sure scripts I make still work then
i y’all just started using fish shell, you’d have proper shell completions and argument splitting that doesn’t care about spaces in file names
at least you/arent/using\ linux
I still use spaces
agreed, “still worth it”
I do, however, tend to keep spaces out of my folder names so i can just use quotes at the end.
/Images/Halloween/Projections/“Creepy Crawlies.mp4”
Don’t try svelte kit. This is pseudocode but it’s valid. The only symbol show here that is not real is the / that I’ve placed at the end of folder to show that they are folders. There are other special cases
routes/ +page.ts (admin)/ +page.ts [user=uuid]/ [[community]]/ +page.ts posts/ [...postIds@]/ +page.ts
sveltekit is beautiful (thanks for spreading the word)
Im trying it out yet. It seems fun, the tutorial is amazing. I don’t think I’d want to do large enterprise projects with it
Have you noticed issues that you think would arrise at scale, etc for an enterprise project?
I’m using it for a small/medium sized project and it’s great and has not got in the way once. Wondering how you feel, since I don’t have experience with much enterprise code.
Oh. No. You win. Mine is a gut feeling that modeling all routes with folders would become a paid. To navigate and manage, while you have actual experience
smells like skill issue tbh
tools which cant handle being installed/run on directories with spaces are so annoying
tools which cant handle being installed/run on directories with spaces are unacceptably common
You are clearly not a command line user :)
I vaguely remember
zsh
in Manjaro (by default) having a tab completion that automatically added the slashes.
Never set it up myself though.But I really hate having to worry about quoting my file variables in scripts.
So much, that after a certain complexity, I just give up the script and make the thing in C++.
Oh, and if I make a script that doesn’t handle file names properly (because it’s not required in that specific use case), I make sure to delete it after use, to prevent mistaken use later, which would otherwise cause more headache than just having to rewrite a script.
You can just start the path with a quote and it will auto complete with spaces. I spend a lot of time correcting files with spaces replaced now. The spaces are better. I think music is the most annoying, since I like to use tools like EasyTag to extract metadata from filenames.
So please stop.naming_files.like_this.its_stupid
You can just start the path with a quote and it will auto complete with spaces.
Oh, you’re right. I just tried it out and it worked the same way.
I wonder what gave me the misconception the it doesn’t by default.
Computers should just know when I want a space to be part of a file name, and when I want them to be argument separators. No more escaping or quoting.
deleted by creator
“_” to the rescue
The number of keystrokes needed to type an underscore is the same that you need to type backslash space, so I don’t see how underscores are in improvement
Mv /home/“$USER”/Downloads /home/“$USER”/downloads
deleted by creator