I gave up trying to explain to normal people why, when we interchange documents, the names of the files I send back to them never have any spaces in them.
Conversation
Notices
-
Embed this notice
Tim Bray (timbray@cosocial.ca)'s status on Saturday, 05-Aug-2023 18:33:05 JST Tim Bray - clacke likes this.
-
Embed this notice
clacke (clacke@libranet.de)'s status on Saturday, 05-Aug-2023 18:33:08 JST clacke @publicvoit @timbray Never used make or texexec on those files I see. =) -
Embed this notice
Karl Voit :emacs: :orgmode: (publicvoit@graz.social)'s status on Saturday, 05-Aug-2023 18:33:09 JST Karl Voit :emacs: :orgmode: @timbray I don't get it.
I avoided spaces and used 7 Bit ASCII myself for many years.
Since probably a decade, I don't see any issue with spaces. I even started to embrace German Umlaute like äöü or ß without noticing any issue. Even zsh completion is working perfectly fine with those characters. 🤷
-
Embed this notice
Jack Baty (jbaty@social.lol)'s status on Sunday, 20-Aug-2023 19:26:24 JST Jack Baty @publicvoit @timbray Regardless of the tooling or how I'll use them, file names with spaces look broken to me and I don't know if I'll ever get over it.
clacke likes this. -
Embed this notice
Karl Voit :emacs: :orgmode: (publicvoit@graz.social)'s status on Sunday, 20-Aug-2023 19:26:25 JST Karl Voit :emacs: :orgmode: Easy workaround:
find -print0 | xargs -0No issue at my side as well.
FYI: Local file management is somewhat my passion and fetish since years 😉 https://karl-voit.at/tags/pim/
clacke repeated this. -
Embed this notice
Tim Bray (timbray@cosocial.ca)'s status on Sunday, 20-Aug-2023 19:26:26 JST Tim Bray find | xargs
In conversation permalink -
Embed this notice
Norm Tovey-Walsh (ndw@mastodon.social)'s status on Sunday, 20-Aug-2023 19:26:27 JST Norm Tovey-Walsh @publicvoit @timbray for $f in *.ext; do something $f | somethingelse > … mother [expletive] space [expletive] you.
In conversation permalink -
Embed this notice
clacke (clacke@libranet.de)'s status on Sunday, 20-Aug-2023 19:26:36 JST clacke @Edjo @timbray cash singles? In conversation permalink -
Embed this notice
Edjo (edjo@mastodon.social)'s status on Sunday, 20-Aug-2023 19:26:37 JST Edjo Yes, as I’ve given up on questioning Americans’ contuing use of “checks” (cheques), mag-stripe credit cards and cash “singles” for tipping 😉
@timbrayIn conversation permalink -
Embed this notice
Edjo (edjo@mastodon.social)'s status on Monday, 21-Aug-2023 04:08:51 JST Edjo Dollar bills
In conversation permalink clacke likes this. -
Embed this notice
Edjo (edjo@mastodon.social)'s status on Sunday, 08-Oct-2023 22:44:30 JST Edjo In conversation permalink clacke likes this. -
Embed this notice
andyc (andyc@mastodon.sdf.org)'s status on Sunday, 08-Oct-2023 22:49:55 JST andyc @jbaty @publicvoit @timbray Make tab complete in bash a pain in the neck. I despise them.
In conversation permalink clacke likes this. -
Embed this notice
Steve Downey (sdowney@mastodon.social)'s status on Sunday, 08-Oct-2023 22:54:04 JST Steve Downey @publicvoit @timbray @ndw
Until what you invoke with xargs is shell, and so much of unix is implemented in shell script.In conversation permalink -
Embed this notice
clacke (clacke@libranet.de)'s status on Sunday, 08-Oct-2023 22:54:04 JST clacke @Sdowney Yeah. It's 100% possible to write shell scripts that behave correctly for all file names, but it's a pain in the neck to get it right in every single place when it's just a one-off.
Also, some tools like ssh have backwards compatibility concerns that force them to behave incorrectly, leading to ridiculous workarounds to make it work.
In conversation permalink -
Embed this notice
Attie Grande (attie@chaos.social)'s status on Sunday, 08-Oct-2023 22:54:06 JST Attie Grande @timbray Do you also prefix it with a date in YYYYMMDD format?
20230805_the_file.txt
In conversation permalink clacke likes this. -
Embed this notice
clacke (clacke@libranet.de)'s status on Monday, 09-Oct-2023 10:21:16 JST clacke @jvk Hyphens and spaces have different meaning. Underscore isn't used in natural English, so it's available to use as a space substitute.
That's the reason, but in the end people are or course welcome to uses kebab-case, snake_case or CamelCase as they like.
Or HTML%20case, I suppose. =)
In conversation permalink -
Embed this notice
John Keogh (jvk@mastodon.org.uk)'s status on Monday, 09-Oct-2023 10:21:23 JST John Keogh @mrzool @timbray Detox looks useful for Unix/Linux but why replace a space with underline? Hyphens are better - no shift key required. Looks nicer and doesn't remind me of Windows.
In conversation permalink -
Embed this notice
b-loved dreamer (mrzool@mastodon.online)'s status on Monday, 09-Oct-2023 10:21:24 JST b-loved dreamer @timbray indeed — detox is one of my favorite tools: https://github.com/dharple/detox
I also use this little script daily, absolutely brilliant:
In conversation permalink Attachments