Hello there! I am the Wandering Wookiee. My passion for exploring takes me all over the galaxy, so when on your travels, be sure to keep an eye out for me!
Just saw one of these for the first time this past weekend on a road trip to Chicago. It was so much bigger and somehow even more shitty-looking than I expected.
I don’t know the system in question, but it’s definitely a bad design when comments need to be written with care. Either you set this up in a really wonky way, or the system you’re using did and it should be fixed ASAP.
What code is in charge of injecting things into a shell script?
<span style="color:#323232;">sudo echo "# FYI quotes(") must be escaped with like "
</span>
👆 that is not a comment. That is a command that says to echo the text “# FYI quotes(” and then to do ) must be escaped like " which is invalid syntax.
I assume that startup script is reading the contents of the file and trying to echo them into another file? i.e., using the original file as a template, but is not escaping the input, hence the error — which you’re lucky that’s the problem you’re encountering and not something actually destructive like sudo echo “# foo” && rm -rf /*.
It’s all good. If you’re using bash and readline to read the file, you can use sudo echo ${INPUT@Q} (assuming your variable is named $INPUT) to have bash escape things like the quotes and other characters that could get you into trouble.
Sadly no, its injected with terraform templatefile, I already looked for a normal way to autoescape it, but from a brief look I couldn’t find one. I know there is a replace function that can take regex(RE2, which from my understanding prohibits * in lookbehinds)- but the simplest regex I could think of at nearly 6am for capturing only non-escaped quotes is /(?:^|[^\])(?:(?:\\)+|[^\]|^)(?‘quote’")/gm. Though, I just realized if the quotes are escaped I would want to double escape them, so actually replacing all quotes with escaped quotes should be fine, also another limitation of this method is lines can’t have trailing ``
Does the water have any kind of smell to it, or does it leave a smell on your skin after wading through it? Probably ultrapure from filtering through the rocks, I’d imagine, although there are microorganisms that live in some caves so maybe not?
The limestone above is not high enough to really filter out whatever the farmer on top throws on their field, so it’s contaminated with pestizides and not recommended for drinking. It smells like fresh water.
lemmy.world
Oldest