• 1 Post
  • 10 Comments
Joined 2 years ago
cake
Cake day: December 16th, 2024

help-circle




  • When I do ls --help|less --raw-control-chars it doesn’t show the control characters, and it looks all neat and pretty. Isn’t this the opposite of how it’s supposed to work?!

    You’ve gotten a longer reply to this, but just to make it clear: No, that’s how it’s supposed to work.

    • By default less mangles control characters so they can’t do anything to your display (or bell)
    • With -R, less will pass some control characters through raw and unmangled; enough to give you stuff like pretty colours
    • With -r, less won’t mangle any control characters, which, if you’re doing something stupid like trying to read a binary file, can leave your terminal prompt fucked up and in need of a reset.


  • -q controls output for filenames. From ls.c:

    /* True means output nongraphic chars in file names as '?'.
       (-q, --hide-control-chars)
       qmark_funny_chars and the quoting style (-Q, --quoting-style=WORD) are
       independent.  The algorithm is: first, obey the quoting style to get a
       string representing the file name;  then, if qmark_funny_chars is set,
       replace all nonprintable chars in that string with '?'.  It's necessary
       to replace nonprintable chars even in quoted strings, because we don't
       want to mess up the terminal if control chars get sent to it, and some
       quoting methods pass through control chars as-is.  */
    static bool qmark_funny_chars;
    



  • Mmm, bottle fermentation.

    But I think the main point is more along the lines of expectations for alcohol and general tastes: I find overly sweet stuff a turn-off, and generally need to temper sweet stuff with something sour or bitter.

    Also, mixing juice and alcohol can very often result in what a lot of us drank as teenagers, and may have rather negative associations to. Like I don’t have problems with gimlets and micheladas or radlers, but I think I prefer them all on the boozier side, and stuff like rum & coke is just … not for me.

    So if I go to a restaurant and get what I interpret as more or less teenager drinking swill full of artificial flavouring, Black Tower and general goon sack swill, I’m going to have a bad time, and be left wondering if this stuff is actually representative of what they consider alcohol for adults, or if the people at the restaurant are being weird.


  • esa@discuss.tchncs.detomemes@lemmy.world•Better vape and fap
    link
    fedilink
    arrow-up
    8
    arrow-down
    1
    ·
    3 months ago

    Yeah, same. Was struck by it at a korean restaurant that had the equivalent of a wine pairing, and their selection was just … something for children, only children can’t drink. As in, I like straight soju and makgeolli, but I’d rather get some craft makgeolli without sweeteners than something flavoured like chemical blueberry replica.