friend_of_satan

@friend_of_satan@lemmy.world

This profile is from a federated server and may be incomplete. Browse more on the original instance.

friend_of_satan, (edited )

That’s not how it works. The second bare double-quote closes the first one regardless of how it is nested in a string. The middle pair of double-quotes would need to be escaped. Also, single-quotes cannot be escaped in this way.

The only place I can think of where nested double quotes do work is in subshells


<span style="color:#323232;">echo "hello $(echo "world")"
</span>

This is because the subshell is interpreted before the outer logic, so during interpretation of the outer logic there is never a nested double quote, just the stdout of the subshell.

These things are sometimes difficult to grok, and even more common, difficult to spot with human eyes. Best to use shellcheck, which will surely help you get better at shell scripting.

friend_of_satan,

Some man pages include examples, which I always greatly appreciate.

friend_of_satan, (edited )

I run all headless Linux machines, and snapd always managed to show up somehow. It’s got shared lib dependencies so that shit like Firefox would be installed and have snap mount points on my machine. Just a bunch of useless noisy garbage on a headless machine. I finally solved the problem by switching to Debian.

I don’t care what flatpak does or does not do, IMHO snap sucks objectively.

friend_of_satan,

Debian 12 is the best destination after Ubuntu if you’re switching because you hate stupid Canonical things. I switched a few months ago and it was really easy and has been awesome.

friend_of_satan,

Snap made me switch back to Debian. Ubuntu was awesome for a long time, but having snap glommed onto everything so much that it kept showing up on my headless boxes was too much.

friend_of_satan,

You could be focusing on “it’s amazing how easy it is for me to make food!” But you’re not. Your emotions are leading you somewhere, instead of your rational mind. Next time you recognize that you feel like that, pause, and pay attention to what exactly it is that you are feeling, without judgement. Use your rational mind to observe your emotional state. Just observe it, don’t control it or try to change it. Hopefully you’ll discover something, maybe even the answer you’re looking for.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • localhost
  • All magazines
  • Loading…
    Loading the web debug toolbar…
    Attempt #