home - all - feeds - topics | science - dull_mens_club - comics - asklemmy - technology - politicalmemes - politics - movies - world - world - sustainability - selfhosted - nfl - technology - microblogmemes - lemmyshitpost - unpopularopinion - pcmasterrace - news - hackernews - more »
log in or sign up | preferences |
quokk.au site icon
EuAndreh@programming.dev
  • overview
  • comments
  • submitted
  • EuAndreh

    EuAndreh@programming.dev

    Programmer - reproducible, offline-first, plain-text software.

    AGPL-3.0-or-later | CC-BY-SA

    joined 2 months ago
    sorted by: new top controversial old
    Multiline comments in POSIX sh in c/programming@programming.dev
    [–] EuAndreh@programming.dev [S] 2 points 2 months ago

    I like it, thanks :)

  • permalink
  • fedilink
  • source
  • parent
  • context
  • Multiline comments in POSIX sh in c/programming@programming.dev
    [–] EuAndreh@programming.dev [S] 2 points 2 months ago (1 child)

    AFAICT, not really, looks line POSIX sh at a glance. Just don't forget to : <<'EOF' instead of : <<EOF.

    But : is arguably simpler than cat, one fewer fork/exec call plus no open(2) on /dev/null.

  • permalink
  • fedilink
  • source
  • parent
  • context
  • Multiline comments in POSIX sh in c/programming@programming.dev
    [–] EuAndreh@programming.dev [S] 2 points 2 months ago

    Oops, renamed the www dir, should be back now.

  • permalink
  • fedilink
  • source
  • parent
  • context
  • Multiline comments in POSIX sh in c/programming@programming.dev
    [–] EuAndreh@programming.dev [S] 4 points 2 months ago* (1 child)

    C89, AKA ANSI C famously only supports /* */, having // as a cross-pollinated idea from C++.

  • permalink
  • fedilink
  • source
  • parent
  • context
  • Multiline comments in POSIX sh in c/programming@programming.dev
    [–] EuAndreh@programming.dev [S] 0 points 2 months ago

    No notepad.exe, nvi: 'a,s/^/# /.

  • permalink
  • fedilink
  • source
  • parent
  • context
  • Multiline comments in POSIX sh in c/programming@programming.dev
    [–] EuAndreh@programming.dev [S] 1 point 2 months ago (2 children)

    I use this only when developing, mostly while debugging. IIRC I've never commited code like this.

  • permalink
  • fedilink
  • source
  • parent
  • context
  • 6
    Multiline comments in POSIX sh (euandre.org)
    submitted 2 months ago by EuAndreh@programming.dev to c/programming@programming.dev
    29 comments fedilink
     

    Back writing in my website.

    piefed
    0.5.3
    mlmym
    dotzip.1.9
    quokk.au
    modlog