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

8:50 AM
Hi everyone! I just stumbled over an answer which is marked as the "correct answer" despite being (I think) harmful. (But I'm not a Debian pro either.) The answer advises to add the Debian SID (a.k.a. unstable) package repository to the sources.list of an Debian Stable system without mentioning that this makes the system unstable. If you agree, please vote accordingly. unix.stackexchange.com/a/406554/103271
 
9:18 AM
@Multisync Agreed, in general this is bad advice. Though sometimes it will work as desired, namely that only a few packages will be upgraded.
But ond does have to be able to distinguish between the two situations.
Incidentally, I see firefox is now at 59. Since I'm at 57, which is not part of stable (though I'm running stable), is there any advantage to upgrading?
I think I originally upgraded to Quantum because Amazon Video stopped working. Or perhaps something else did - I'm not sure.
I'm surprised firefox isn't part of backports.
And if you are going to downvote the accepted answer, in fairness you should also downvote the answer below it, namely that of JBBgameich.
 
9:35 AM
I just realised that I answered this question too. It's at the bottom, with zero votes.
And I see that I also used apt-get install -t unstable firefoxin this case. Maybe I should add a more emphatic warning.
 
@FaheemMitha: Upvoted your answer!
 
@Multisync Thank you.
 
10:08 AM
I see that if I now try to upgrade Firefox to 57 in unstable it tries to upgrade libc6, so just an upgrade to unstable is no longer an option.
I wonder how bad a backport would be. But I'm not inclined to try.
 
 
2 hours later…
12:22 PM
@FaheemMitha the second answer isn’t as bad — it doesn’t result in upgrading the system to unstable!
 
12:44 PM
@StephenKitt To be clear, I meant the answer by JBBgameich.
Currently ranked third.
 
@FaheemMitha yes, I know
 
@StephenKitt If we're talking about the same answer, I think it does suggest upgrading to unstable.
 
@FaheemMitha “You can probably just download and install the deb file from there.”
that doesn’t suggest upgrading to unstable as I understand it
 
@StephenKitt Also tagged as "OLD ANSWER". The mention of unstable is above.
And suggesting the installation of a deb from experimental isn't much better than recommending installing from unstable. Both approaches are quite likely to pull in / upgrade other packages, possibly causing a mass upgrade.
And even upgrading libc6 is problematic, at least in theory.
I suppose one could downgrade after the event, but that's not necessarily trivial.
 
@FaheemMitha yes, but the answer doesn’t suggest changing sources etc., just going to the package page and downloading the .deb, which will have very limited impact
@FaheemMitha yes, which puts a damper on the whole endeavour, but again, won’t happen automatically with this particular answer
@FaheemMitha no, experimental is never used as an automatic upgrade source (even for packages installed from there)
 
1:00 PM
@StephenKitt I suppose that's technically true, but if one tries to satisfy the dependencies for that deb, you probably will get stuff pulled in. At least for unstable.
 
@FaheemMitha but not by downloading the package manually, which is what the answer suggests
 
1:18 PM
@StephenKitt Agreed, that action will not in itself cause dependencies to be downloaded.
But without those additional dependencies, one has a broken system.
So I don't see a significant difference in the advice offered.
And wouldn't a package in experimental be likely to pull in dependencies against unstable?
I assume experimental packages are built against unstable, not stable.
 
2:03 PM
@FaheemMitha yes, experimental packages are built against unstable, so experimental Firefox would pull in unstable libc
 
2:36 PM
@StephenKitt I will try to avoid auto duplicate Kali linux question.
 
@Kiwy thanks
BTW @Kiwy I’ve been meaning to ask what you meant (in French) by unix.stackexchange.com/questions/430189/…
ah, « je me coucherai moins bête »
 
I continue getting this really weird academic spam. Inviting me to meetings around the globe of various medical and scientific topics. What they all have in common is that I know nothing about them.
 
@StephenKitt yes indeed the exact translation, Do know if there an english equivalent
 
It's really annoying - I wish I knew how to make it stop.
One problem is that it's hard to distinguish from legit mail.
 
@FaheemMitha Just do what I do, ignore all mail.
 
2:43 PM
@Jesse_b tempting, but probably impractical.
 
@FaheemMitha I tend to ignore any mail I don't understand or expect or that come from someone I don't know
 
@Kiwy Yes, me too, I suppose. But it still gets tiresome to deal with piles of junk.
 
I have 5 email addresses. One of them is never used to sign up for anything. I only give it to friends and family
I have had it for at least 5 years now and have yet to get any spam on it
 
@Jesse_b So none of your friends and family have made it public, then?
 
Well I also use it on my resume so it's not super private, but I think spam is mostly just from registering for things
 
2:48 PM
@FaheemMitha I do the same as @Jesse_b and just by segmenting my emails adress and not using gmail/yahoo or any major mail provider I have something like 2 or 3 spams a week
 
@Kiwy I have just one email address.
 
I actually had a really big impact on some of my other addresses by going through all the spam and following the "unregister" links in them. It actually works for many of those crappy newsletters/spam you don't want
 
@Jesse_b Really? That's interesting. Conventional wisdom says that if you do that, you'll get more spam.
Because the spammers will have confirmation the address is "live". :-)
Part of the problem is that my mail hosting provider has crappy spam management. They let a lot of obvious stuff through. Though the service is not inexpensive.
 
That's what I thought too but some of my addresses were getting so much spam I didn't have many other options
 
@FaheemMitha It increase the value of your profil but at least in Europe it also mean you ask not to be disturbe its almost respect and reduces the amount of spam
 
2:52 PM
They have a special $2 spam filter. I think they want to sell that, so they keep the spam filtering crappy.
@Kiwy Do you do that too, then?
 
@FaheemMitha I have a special address to register to newsletter and commercial site but in Europe you can almost always ask a site you register to not resell your data and that's what i did with all that. most of the spam i get comes from stolen data from someone who have my adress more than commercial spam. When I see a newsletter I didn't suscribe for I unregister keeping my amount of spam quiet low
 
@Kiwy I don’t think so...
 
3:08 PM
@Kiwy I'm not in Europe. But spam in international, so I don't know whether you location makes a difference.
 
@FaheemMitha in Europe, it makes quite a bit of difference for spam originating in Europe
 
@StephenKitt Does a lot of spam originate in Europe? And how can one tell?
 
@FaheemMitha I don’t know what the share of it is
 
@StephenKitt I don't suppose anyone does.
 
you can find out by looking at the headers and the ownership of the domains involved
but I do know that it’s fairly straightforward and effective to deal with most of the Europe-based spam I get
 
3:11 PM
I register mostly to site that comply with europeen law I guess, so most site I connect to ask if you allow commercial usage of your data
 
@StephenKitt I always assumed they would just fake those headers.
 
@FaheemMitha that’s becoming harder, with requirements involving DKIM or DMARC
 
@StephenKitt I see.
 
 
3 hours later…
5:54 PM
Something I learned from chat: a more amusing interpretation of dskm_handle_failed_ioctl3.2: oss_ioctl 3 to device o/192.168.111.7;192.168.111.8, oss_fd 0 failed with error 7 isFence: Yes to see the o/ in there as the system saying "ahoy there, IP 192.168.111.7!" as opposed to the sad reality of the system being in solitary confinement
 
 
2 hours later…
8:11 PM
Got a quick question (easy): I have a bash script that I want to use to sum a list of any amount of numbers from stdin. However, when I run it I get "1: command not found" where 1 is the first number entered through stdin. Here is my code
var1=echo $* | tr " " "\n" | awk '{ sum+=$0 }'
 
82
A: How can I assign the output of a command to a shell variable?

GillesA shell assignment is a single word, with no space after the equal sign. So what you wrote assigns an empty value to thefile; furthermore, since the assignment is grouped with a command, it makes thefile an environment variable and the assignment is local to that particular command, i.e. only the...

Also:
44
Q: What is the difference between $* and $@?

rahmuConsider the following code: foo () { echo $* } bar () { echo $@ } foo 1 2 3 4 bar 1 2 3 4 It outputs: 1 2 3 4 1 2 3 4 I am using Ksh88, but I am interested in other common shells as well. If you happen to know any particularity for specific shells, please do mention them...

And while we're at it:
209
Q: Why does my shell script choke on whitespace or other special characters?

GillesOr, an introductory guide to robust filename handling and other string passing in shell scripts. I wrote a shell script which works well most of the time. But it chokes on some inputs (e.g. on some file names). I encountered a problem such as the following: I have a file name containing a spa...

:P
 
Thanks ^^ I've got some reading to do!
 
@Jordan Heh, yeah :) The basic answer is that var=echo simply sets the variable var to the string echo. To save the output of a command in a variable, you want var=$(command)
Also, your awk needs to print its results: . . . | awk '{sum+=$0 }END{print sum}'
 
Ahh okay this all makes sense
I was trying to assign that all to var1 so that I could echo it and print it with bash
 
@Jordan You would still need to have awk print. Otherwise, there would be no output. You were adding things to sum but never printing the result.
terdon@tpad ~ $ seq 10 | awk '{sum+=$0}'
terdon@tpad ~ $ seq 10 | awk '{sum+=$0}END{print sum}'
55
 
8:20 PM
Thank you! That makes sense too after I removed the echo "$var1" and it didn't work :-)
 

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