Open tincanfury opened 1 year ago
Use backslash before each ". From: https://github.com/nextcloud/previewgenerator/issues/212#issuecomment-1323651064 It works for me.
This issue still persists - even for commands that have no backslashes in them.
This isn't a bug in the previewgenerator
. The variance in behavior for different people here (and in the linked issue) is because what's needed depends on how one opens the interactive shell session they're running the command in.
This is a Unix/Linux/OS thing.
Generally a mixture of single quotes or single quotes will work, but there's no single command because it depends.
The following situations commonly create this situation:
docker exec
(particularly without -it
)sudo
su
I'd love to document this is some way nicely, but I'm afraid someone can always come up with a different runtime environment combination. :-)
If there was to be an attempt to document this (which is not Nextcloud specific) it would belong likely in the Admin Manual in the occ
command introduction/overview section.
Nextcloud Hub (26.0.3) via docker from linuxserver.io all the commands provided,
result in the same error, ie,