« first day (2706 days earlier)      last day (2243 days later) » 

7:08 AM
Damn, wanted post an answer here
Undelete votes anyone?
 
7:31 AM
@muru There are now 2 undelete votes.
 
Thanks!
 
8:00 AM
@muru It's back
 
@muru wow playing with pin priorities over 1000... and that preferences file O_O
 
@terdon I don't actually accept that these aren't vendettas by the two users I accuse of trolling. Today an old question got a down vote and again I became blocked of asking in the site. This is indeed frustrating.
 
8:16 AM
@MichaelHomer thanks. Yep, and considering that OP seems to be building these packages, I suppose they really want it.
 
8:29 AM
One thing that contributes to the system deciding not to accept questions from an account is self-deleted questions, which isn't something other people can affect.
 
8:52 AM
@user9303970 Sorry to hear that, but as I told you before, I have no way of knowing who downvoted you or why.
 
9:12 AM
Hmmm... I'd like to process part of a file with sed and the rest with cut, I thought I could do { sed '/something/q'; cut -f 1-8; } <file but it seems as if cut never gets to play with the data...
sed obviously closes the stream or something which leaves cut with nothing to read.
 
@Kusalananda that’s weird, it works for me
POSIX also says it should
21
Q: Why does 'grep -q' consume the whole input file?

don_crisstiConsider the following input file: 1 2 3 4 Running { grep -q 2; cat; } < infile doesn't print anything. I'd expect it to print 3 4 I can get the expected output if I change it to { sed -n 2q; cat; } < infile Why doesn't the first command print the expected output ? It's a seekable in...

has relevant background information (which you already know, I think)
I ran
printf "aaa\naaa\ntrigger\nbbb\nbbb\nthisisatest\n" > test
{ sed -n /trigger/q; cut -c 1-8 } < test
and the output is
bbb
bbb
thisisat
 
Let's say I have
# 1
# 2
# 3

a 1 2 3 4 5 6 7
b 1 2 3 4 5 6 7
And I want to passthrough the # lines and only the three first columns of the rest.
$ { gsed '/^[^#]/q'; gcut -d ' ' -f 1-3; } <file
# 1
# 2
# 3

a 1 2 3 4 5 6 7
My native BSD tools does exactly the same (coreutils and GNU sed above).
I know that the last line comes from sed, and cut doesn't output anything. It doesn't matter if I replace the empty line with @ or something, cut still gets nothing.
 
right
I get
 
Hmm... maybe it's my shell that is doing the plumbing wrong?
 
# 1
# 2
# 3

a 1 3 4 5 6 7
b 1 2
 
9:23 AM
That's what I'd expect, yes.
Tried it in bash now, still the same. Peculiar...
 
I get that with zsh and bash
time to strace sed to see what it’s doing with its file descriptor ;-)
 
What sed are you using there?
 
GNU sed 4.4
 
I have GNU sed 4.2.2
It does close(1) and close(2) but nothing else that I think would affect this.
 
nothing obvious in the changelogs since 4.2.2
 
9:29 AM
Ah. It does read the whole file.
It consumes the whole thing.
 
mine seeks back after reading everything
lseek(0, -15, SEEK_CUR)
at the end
 
No seek in my trace.
No, it just closes 1 and 2 and exits.
 
that explains the behaviour, but it shouldn’t be doing that, weird
 
@StephenKitt I remember that question. I recall looking up whether POSIX required the file pointer ta be located at a particular point.
I can't remember what I found though.
I wouldn't be surprised if it was unspecified or implementation-defined.
 
10:10 AM
@Kusalananda see here, under “INPUT FILES”
> When a standard utility reads a seekable input file and terminates without an error
before it reaches end-of-file, the utility shall ensure that the file offset in the open file
description is properly positioned just past the last byte processed by the utility.
 
10:27 AM
@StephenKitt This is an interesting article about poppies - independent.co.uk/voices/commentators/fisk/…
But maybe you've already read it.
You might even have linked to it - I have a dreadful memory.
 
@FaheemMitha I hadn’t come across it before, thanks
 
@StephenKitt But stdin is not seekable.
 
You probably know Robert Fisk. He's a famous journalist.
 
@Kusalananda it is when it’s backed by a file
see the example a few paragraphs below in POSIX
 
@StephenKitt And this man's story is mentioned in the footnotes of that article - en.wikipedia.org/wiki/Harry_Patch
 
11:22 AM
Does anyone else see part of the code in red in the first revision of this?
https://unix.stackexchange.com/posts/428718/revisions
and if yes, anyone have any idea what causes that? :)
 
11:39 AM
@ilkkachu yeah, I am seeing red as well (and red again in preview if I click edit and remove the none) .. dunno why though..
 
12:26 PM
@ilkkachu Syntax highlighting
Which I assume you know since I now see you were the one who fixed it.
 
@terdon, Yes. But I couldn't tell why it resulted in that.
 
@ilkkachu I’m guessing it decided it was HTML or XML, and the red part is invalid text
 
Not invalid, but it does look like it was parsed as html code. Trying to figure out why.
OK, got it.
The tag is set to highight with "default" for some reason. I could have sworn I'd set it to C which I figured is the closest match. Default apparently means HTML:
 
hehe :)
 
OK, I set it back to C, but it doesn't seem to have taken yet.
At least it isn't highlighting at all. Give it some time in case it's caching and also yell at me if it turns out C is not a good choice for awk. It may well not be since most awk code will be in single quotes. . .
Yeah, have a look at your answer @ilkkachu, it's just red.
Maybe there should be no default syntax highlighting for ?
 
12:38 PM
Yeah, it's the dark red that shows for quoted strings. That's just fine, it's not nearly as distracting as the bright red.
 
OK, I'll leave it like this for a while and we'll see how it goes.
 
of course, Stéphane wrote a shell command while the highlighter was expecting awk so I'm not sure how the automatic system could have gotten it right in any case
 
cas
that's weird. i just answered a fairly simple question and the OP wanted to add my name to their web site's about page as a consultant or something. i said "ummm, no thanks, i'd feel really uncomfortable taking any credit for something i didnt' work on". weird.
2
Q: How can I see all sent emails from my mail server?

Martin AJMy server was infected to a malware. That malware sent lots of emails to random people with random content (promotional content). And now, my domain authority is getting pretty low and every email I send goes to spam. What I said is a guess (though I'm sure about that malware, but I'm not sure i...

 
@cas Huh, I got the same request.
 
Funny. I suppose you could ask them to direct the thanks at "the nice folks at unix.stackexchange.com", if they really want to put something up.
 
12:49 PM
wow that seems rather dodgy
it’s not just about giving you guys credit
I get the impression they’d be using you as a sort of endorsement
 
@MartinAJ sorry, but I don't feel comfortable being listed as a contributor to a project I don't contribute to. In fact, I feel extremely uncomfortable and would consider it very unethical, so please do not mention me in any way. — terdon ♦ 14 secs ago
Gilles and Kusalananda also got one.
This is worrying. On the other hand, they are asking for permission which is a good sign.
 
cas
@StephenKitt yeah, but i didn't want to offend the guy by stating that outright. i was trying to come up with a nice way to say no.
 
@cas which is laudable, they might not even realise it’s objectionable
 
They probably don't, which is why they're asking. They're being polite about it and it would have been trivial to just go ahead and do it without asking, so I think they just didn't think people would mind.
 
cas
yep, probably. i expect it's innocent request. just weird and uncomfortable.
 
12:55 PM
Yeah
 
as long as the tax man doesn’t get wind of this and comes along asking all the big U&L contributors how much they earn from their U&L “consulting” ;-)
 
heh. Especially since I currently work under a consulting contract.
 
cas
also, i don't read Persian so I'd have no idea what is being discussed on the site. They could be discussing something awful like "why unix is crap and microsoft is wonderful".
 
@MartinAJ I accept your comment as a compliment. Note however that I'm doing what I'm doing here for my own enjoyment, and even though I honestly hope that your site will be successful, I can not endorse it, nor do I want you to associate me or my name with it (as it would be interpreted as an endorsement by me). I'm unable to take further responsibilities of any kind at this point in time. I'm answering questions on U&L that appeal to me, and that's all I'm doing here. — Kusalananda 1 min ago
 
@cas “our consultant cas says every one should use Windows, or at worst RHEL, but whatever you do, avoid Debian at all costs”
 
12:59 PM
hehehe
 
cas
@StephenKitt in .au you can earn up to, IIRC, $5K per year in a "cottage industry" (i.e. any small home "business" that isn't related to your primary source of income - i.e. job) without having to declare it. i.e. a smallish amount of hobby income isn't worth the ATO's time to chase.
 
@cas nice
here in France there’s a “auto-entrepreneur” setup you can use for up to 32k, which still involves declaring stuff, albeit in a simplified way, and has lower tax than normal income
but they’re trying to catch everything
like even ebay and co are going to have to tell the tax authorities how much they’ve processed on your behalf
so we’ll be taxed on second-hand sales and stuff like that :-/
 
cas
Unless you're on the dole or a pension, then the govt's robodebt will send debt collectors after you because their calculations are deliberately designed to make mistakes in the govt's favour. Hooray for neo-liberal governments giving billions in tax cuts to multinationals and viciously attacking the poor.
 
debt collectors? wow
 
cas
oh yeah, they're vicious. they started handing out robodebts of thousands of dollars just before christmas. almost all of them are bogus, usually because the tax office (ATO) gives the pensions dept (Centrelink) a yearly statement. Centrelink then divides that by 26 and "assumes" (deliberately) that you were earning that amount every fortnight for the whole year. This screws up people who were on the dole for a few weeks or months, and then got a job, creating a bogus debt of many thousands.
gotta fund the tax cuts somehow. and it's always good to kick the poor in the nuts at any opportunity.
 
1:09 PM
@cas $5K isn't that small. Though maybe in AU it is. Presumably AU $.
 
cas
our country is being americanised. like most other western democracies, i suppose.
 
@cas Hooray?
 
@FaheemMitha if prices are anything like in Europe, that’s two days’ consulting approximately
(for a decent consulting gig)
 
cas
No, $5K isn't small, but it's not huge either. poverty line in .au is roughly $22K/year. acoss.org.au/poverty
 
@cas A guest couple just arrived last night. One of them was Australian. I mentioned the AU health service (he'd come to India to have dental work done), and he said "it's a joke and always has been". I actually mentioned you, and he said that, yes, they do stuff for emergency cases.
 
cas
1:11 PM
hooray = snarkasm.
 
Though if he thinks AU health care is a joke, I wonder what he'd think of Indian health care.
@cas Suppose you had multiple such businesses?
@StephenKitt Wow, really?
 
cas
Medicare isn't a joke. Not yet, anyway. Far from it. Our current (conservative / neo-liberal) govt is trying to destroy it (and privatise it by stealth) because they hate wasting taxpayer money on public services when it could be given to billionaire mates instead, but it's still good. And not just for emergencies.
 
@cas I believe you.
I'm not sure why we are all blessed with govts who are trying to give everything to the billionaires.
 
cas
@faheem - nope. that $5K is the combined total allowed from all hobby activities you might do. the amount is probably inaccurate, or that ATO ruling may even have been abolished by now (i don't pay attention to things like that), but it still existed a few years ago.
 
@cas Ok, I see.
 
cas
1:15 PM
because billionaires buy the governments they need to give them the laws and tax cuts they want.
 
@cas The billionaires I'm familiar with never seem that busy doing that kind of stuff (apart from people like the Koch brothers), but maybe they delegate.
 
@FaheemMitha 5000 AUD isn’t much above 3000 EUR, and a decent consulting gig is 1500 EUR per day (in IT, for actual “consulting” rather than contract development)
 
@StephenKitt I see. 1500 EUR is pretty good money. I wish I could get me some of that.
 
cas
1:35 PM
@StephenKitt it could be much much worse than RHEL, they might have me endorsing SuSE.
 
@cas hah hah indeed
I was thinking more along “non-Debian” lines ;-)
 
cas
RHEL I could live with. SuSE...the shame would be too much to bear.
 
Open SuSe actually has come a long way recently.
 
@cas Is SuSE so much worse than everything else?
At the end fo the day, it's all the same software.
 
I haven't used it in years (I used to use SuSe until Novell got it) but I was reading some stuff about the recent open SuSe versions that made it sound quite nifty.
 
cas
1:38 PM
@faheem here's some more snarkasm for your amusement: blog.taz.net.au/2018/03/07/brawndo-installer
 
@FaheemMitha there’s only one true Linux anyway, and that’s Justin Bieber Linux
 
cas
(although half the joke is probably lost if you haven't seen the movie Idiocracy)
 
hosted on the wonderful SourceForge so good luck actually downloading it
 
@StephenKitt Wow. That could get you kicked out of both your day job and your hobby!
 
@terdon living dangerously ;-)
 
1:40 PM
@cas I have. But I probably don't remember anything about it.
Well, dinner time.
 
cas
is there actually a Justin Bieber Linux? Thats....umm. beyond description...
 
@cas Yes.
 
I am tempted to suggest a meta community add about one of those :)
 
@terdon ROFL
 
cas
1:42 PM
humans are weird. NTSFOITOWTBS.
 
@terdon and BackTrack Linux, we could have some fun with that
 
@StephenKitt Ooh, send all the KaliKiddies to Backtrack and refuse to explain why they can't update no more?
 
@terdon exactly
BackTrack, the new pen-testing Linux distro!
 
Wait, why would I need a distro for that?
I can just try writing with the pen, right?
(I'll show myself out)
 
cas
i'm half-convinced that the real reason kali exists is to be a honeypot for script-kiddies to waste their time on an unusable system.
7
 
1:51 PM
@cas good point, I shudder to think of what debian-devel would be like if we had all the Kali script kiddies there
 
cas
2:18 PM
Kali's also a little embarrassing personally. back in the 90s it was common to name machines with a theme. When i set up my home network, planets and stars and roman & greek gods had been done a million times before, so i picked hindu deities (at least those with short 2-3 syllables names :). ganesh, indra, surya, hanuman, and others, including kali. kali's been on my home network since ~ 1994, and has absolutely nothing to do with Kali Linux - it runs Debian (of course).
 
Hey all! I am trying to put my bash script to run at system startup and I am following approach 3 in this answer: askubuntu.com/a/228313/345635
I am on Amazon CentOS and update-rc.d command does not exist in centos
What command should I use?
 
Grrr... 3rd question today that gets delete (by owner) while I'm typing in my answer.
 
cas
@Grimlock dunno about an update-rc.d equivalent for Centos. Maybe you have to manually create the Knn* and Snn* symlinks in /etc/rc*.d/ yourself? Probably easiest to use alternative #1 (edit /etc/rc.local) if it's just a simple script.
 
@Grimlock the equivalent is chkconfig
 
cas
2:34 PM
I added [ -d /etc/rc.boot ] && run-parts -v /etc/rc.boot to my /etc/rc.local so I could just drop scripts in /etc/rc.boot and have them run in sorted order. dunno if centos has run-parts either - i'd have to boot up my centos vm to find out.
 
I tried chkconfig, but I get this: service xyz does not support chkconfig
I was following this answer: https://unix.stackexchange.com/a/282716
 
cas
rc.boot used to be a standard feature of debian sysvinit. got dropped even before the switch to systemd. I was already making extensive use of it, so i re-enabled it in rc.local.
 
@cas I did that (approach 1) but the script didn't run at startup. Do I have to put /bin/bash before script address? Sorry, I am very new to linux
 
@Grimlock check out man chkconfig to see what the requirements are
 
cas
2:57 PM
does your system run /etc/rc.local at startup? add something like echo here i am in /etc/rc.local to it and see if it gets displayed on boot. or touch /tmp/rc.local.was.here and check if that file exists after reboot. BTW, your script should start with #!/bin/bash or #!/bin/sh as the first line AND it should be made executable with chmod +x. and if it's not in the PATH, you should specify the full path when running it.
 
Yeah, thanks that's what I am trying. Following this answerL askubuntu.com/a/401090/345635
Will report back what happens :)
 
cas
damn. i forgot that code highlighting isn't much use in SE chat. do mods have the ability to change the CSS for chats? If so, please add "div.message pre, div.message code { background-color: white !important; }" so that backtick-ed code looks different to normal text. (i have a rule to do that in stylus, and it works well).
 
@cas Nope, we can't. Sorry.
 
cas
try the next answer down: systemctl status rc-local.service. enable it if it isn't already enabled.
 
3:49 PM
@cas While it's no doubt very witty, I don't follow this particular bit of snark.
 
cas
4:38 PM
 
Could we close this one please before we get more personal opinions about random Linux distributions? unix.stackexchange.com/questions/428786/…
Thanks.
 
 
2 hours later…
6:45 PM
@Kusalananda One possible option (I think) -- and reminiscent of a old mikeserv meta post -- you could upvote the Q before starting to answer. I think that'd prevent the OP from self-deleting. (And if you think it's up-vote-worthy)
39
Q: Why answer a question not worth your upvote?

mikeservI see it most often on the sed/awk/grep/perl type questions, but it does happen pretty frequently I think. A lot of times you'll find like 4 or 5 answers on a question with 0 votes and it just boggles my mind. Personally, I wouldn't bother providing an answer to a question which I did not think w...

 
6:58 PM
@JeffSchaller Hmm... I thought that a question still could be deleted even if it it was upvoted, and that it was when it had one upvoted or accepted answer that it couldn't be deleted.
 
@maulinglawns Cheers
@Kusalananda Pretty sure that's the case, yes
Yep:
> You can't delete your own question when it:

has an answer with upvotes (even if it has a net negative score)
has an accepted answer
has multiple answers (even if there are no upvotes)
has an answer with an awarded bounty
274
A: How does deleting work? What can cause a post to be deleted, and what does that actually mean? What are the criteria for deletion?

jjnguyHow can a post be deleted? By a user: The author can typically delete their own posts at will; for exceptions, see When can't I delete my own post? below. To delete a post, just use the delete link below it. Moderators can delete any post instantly. Users with reputation ≥ 2k (more precisely, ...

 
7:18 PM
@Kusalananda My tenuous grasp on SE's workings remains tenuous. Thanks for the clarification!
 
I didn't know downvotes on answers mattered, so there you go.
 
@Kusalananda The idea is to avoid "WAaaaah! I lost rep! Where'd my reps gooooo!" whining.
 
@terdon I understand. Good.
 
8:11 PM
2 messages moved to [Discussion on answer by ilkkachu: unexpected behaviour with echo [[:digit:]]](chat.stackexchange.com/rooms/74165/…)
 
Interesting regular expression question about differences between GNU and BSD grep when using -o: unix.stackexchange.com/questions/428841/…
 
@Kusalananda ?
The OP is escaping the *
 
Well, that's a recent edit. I don't know what he's doing. The thing is currently better described in comments. I will make an edit.
 
@Kusalananda Yeah, I just saw the text and kind of skipped over the image
Still can't reproduce though
terdon@tpad ~ $ echo "once upon a time"|grep -E "[a-z]+"
once upon a time
terdon@tpad ~ $ echo "once upon a time"|grep -E "[a-z]*"
once upon a time
 
It does happen
I think that has to be a bug
 
8:20 PM
Maybe a fixed one?
$ grep -V
grep (GNU grep) 3.1
Copyright (C) 2017 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by Mike Haertel and others, see <http://git.sv.gnu.org/cgit/grep.git/tree/AUTHORS>.
 
echo "once upon a time"|grep -o -E "[a-z]*" is even stranger
It gives two matches, "once" and a blank line
You're using the wrong grep.
 
$ echo "once upon a time"|grep -o -E "[a-z]*"
once
upon
a
time
What do you get?
Argh. I finally actually read the question and comments instead of barking up the wrong tree. It's BSD grep that has the odd behavior. I see.
 
@Kusalananda I don't get the behaviour you describe with -ow either with macOS grep (BSD grep) 2.5.1-FreeBSD, it still just gives one word. The difference is that without -w it gives a blank line too
 
@MichaelHomer Aha, so that must be an OpenBSD thing then.
$ echo "once upon a time" | grep -E -o "[a-z]*"
once
$ echo "once upon a time" | grep -E -w -o "[a-z]*"
once
upon
a
time
 
dragons:~ mwh$ echo "once upon a time"|grep -o -E '[a-z]*'
once

dragons:~ mwh$ echo "once upon a time"|grep -ow -E '[a-z]*'
once
dragons:~ mwh$
Here's a fun one:
dragons:~ mwh$ echo " once upon a time"|grep -o -E '[a-z]*'

dragons:~ mwh$
 
8:30 PM
@Kusalananda BSD stands for "Buggy Search Device", right?
 
@terdon But lovable.
 
:P
 
And of course Stéphane noted that already
 
@MichaelHomer Oh wow. That one's really bad. What a weird bug.
@Kusalananda I'm doing some comment cleanup, you saw this, right?
@Kusalananda Thanks. You saved my badly written question: ) — ch48h2o 4 mins ago
 
@terdon Saw it. Thanks.
 
9:06 PM
@ilkkachu Uh, got your name wrong. Sorry!
 
 
1 hour later…
10:29 PM
@Kusalananda I do that all the bloody time!
It's that lower case L, it hides behind the i
 
I know a Finnish guy called Ilkka, but "Chu" sounds Chinese... Interesting username.
 
V.7
11:08 PM
Hey all
Could me ask a question regards "Linux's error while trying to launch a game" here ?
Could I *
 

« first day (2706 days earlier)      last day (2243 days later) »