Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

8
  • Note: use of back ticks e.g. ... `command` ... is deprecated. Use the newer easier to use "$(command)" (but yes this simple use with echo is hoop jumping). Use of .sh at the end of file names is not Unix. And it violates the principle of abstraction, as it leaks implementation detail. Just name them by what they do, not how they do it. Commented Oct 21, 2022 at 8:16
  • 2
    @ctrl-alt-delor They are most definitely not deprecated, only awkward to use and should be avoided. In this particular case, any type of command substitution would be inappropriate. As for naming files, that's really up to the user. If you are concerned with abstraction, you could suggest the user uses the hostname command directly rather than via a nonsensical script with a function. Commented Oct 21, 2022 at 8:22
  • 1
    deprecate : express disapproval of. I disapprove. You say should be avoided. Thus deprecated. As for up to the user. I agree, it is the same for drug use. And the best abstraction is no abstraction (it depends). However I assume the examples were minimum non-working examples. Commented Oct 21, 2022 at 8:29
  • 2
    fwiw, this error is usually a bad shebang, see also stackoverflow.com/a/18818809/127971 Commented Jan 7, 2023 at 3:48
  • 1
    @ctrl-alt-delor deprecate(3): to withdraw official support for or discourage the use of (something, such as a software product) in favor of a newer or better alternative" you're right, but only accidentally, so no credit given and mockery warranted. Citing a dictionary definition in a technical context is always wrong, citing the wrong one is lazy and stupid, and citing your opinion as evidence is in line with what I'd expect after #1 and #2. No one cares. Commented Sep 28, 2024 at 7:46