Why Nostr? What is Njump?
2023-05-03 20:56:44
in reply to

b9AcE #NoEdits on Nostr: Welll, OK, it may have happened that I made a mistake in a BASH UNIX(/Linux) script ...

Welll, OK, it may have happened that I made a mistake in a BASH UNIX(/Linux) script or two(hundred ;-P),
but so how do you find those mistakes?

One good way is to tell BASH to just tell you everything it actually ran, what it interpreted the script as you having told it to do, explicitly, with "-x".

Very easy, just run your BASH (Bourne Again SHell, because he original UNIX-shell ("sh") was by a person named Bourne, so the "improved" version is the "Bourne Again"-shell, BASH... anyway, I digress), like this:
"bash -x script.sh",
then it will run your script which in that example would have been "script.sh" while printing out every command it ran, with every variable expanded to what it understood it as, etc.

Very nifty, for people that may make mistakes, like I dnon't do.
Author Public Key
npub14hy0uajlrmsmt4ep5ex7ayqxyaamq0rqsf8yt4h4crmcjay9l4xsaqjycy