Hubzilla
Login
Hubzilla
Login
System Apps
Directory
Help
Language
Public Stream
Random Channel
Report Bug
Search
#hubzillabug202411031212 remove non asci characters from directories
Sun, 03 Nov 2024 11:11:42 +0100
View Profile
Hubzilla Support Forum
adminsforum@hubzilla.org
od
wrote the following
post
Sun, 03 Nov 2024 11:11:48 +0100
#hubzillabug202411031212 remove non asci characters from directories
Why does the hubzilla directory contain
store/[data]
???
It is unecessary annoyance to escape square bracket ([) character
1
Harald Eilertsen
Link to Source
show all
7 comments
Sun, 03 Nov 2024 11:28:38 +0100
View Profile
Der Pepe (Hubzilla) ⁂ ⚝
pepecyb@hub.hubzilla.hu
[ is ASCII 91
] is ASCII 93
What's the problem? The days of MS-DOS, where square brackets were forbidden in file names, are fortunately over. 😉😂
Link to Source
Sun, 03 Nov 2024 11:43:56 +0100
View Profile
Alfred Bühler
abu@hub.alfredbuehler.ch
The problem might be, that these chars have special meaning in shell commands. They always have to be quoted.
ls -l store/\[data\]/
BTW, I don't see any sense in enclosing a directory name with [].
1
Harald Eilertsen
Link to Source
Sun, 03 Nov 2024 11:53:26 +0100
View Profile
Harald Eilertsen
harald@hub.volse.no
@
Alfred Bühler
I agree, it's annoying. If we should change it, it would have to be done with care though, as it could very easily break an upgrade. Especially since we don't really have any upgrade routine apart from 'git pull'.
It would be nice though, if we could specify the data directory and config file via environment variables or so. (And fall back to the existing ones if none were specified.) That would solve it, and also enable easier multi-site setups from the same code directory.
Link to Source
Sun, 03 Nov 2024 11:54:28 +0100
View Profile
Der Pepe (Hubzilla) ⁂ ⚝
pepecyb@hub.hubzilla.hu
@
Alfred Bühler
They always have to be quoted.
This is not necessary with bash or fish.
Link to Source
Sun, 03 Nov 2024 12:03:57 +0100
View Profile
od
od@zotum.net
It would be (personal opinion) better if no such characters were there
Link to Source
Sun, 03 Nov 2024 12:08:29 +0100
View Profile
Der Pepe (Hubzilla) ⁂ ⚝
pepecyb@hub.hubzilla.hu
Serious question: Have there ever been serious problems because the directory contains these characters?
A changeover is not trivial and harbours compatibility problems. It should not be touched just for aesthetic reasons. (As you know: ‘don't touch...’)
There are certainly more important things that need to be changed, improved or corrected in Hubzilla.
Just my opinion...
1
Scott M. Stolz
Link to Source
Sun, 03 Nov 2024 12:14:07 +0100
View Profile
Mario Vavti
mario@hub.somaton.com
The actual historical (and still relevant) reason why square brackets are used is to prevent mixing up channel directories with actual system directories. Square brackets are not allowed in the channel address.
5
Alfred Bühler
Harald Eilertsen
Der Pepe (Hubzilla) ⁂ ⚝
Scott M. Stolz
Max Kostikov
Link to Source
Conversation Features
Loading...
Conversation Features
Loading...
Login
Email or nickname
Password
Remember me
Login
Register
Password Reset
Remote Authentication