Hacker Newsnew | past | comments | ask | show | jobs | submit | more codezero's commentslogin

Almost totally unrelated, but taking the opportunity to rant. If you use OS X, your getopt is fully POSIX compliant (as are many BSDs, I think), unlike most Linux distributions. This means globs (files arguments) must come after optionals.

For example:

ls -la * .txt

OK

ls * .txt -la

Not OK

This drives me mad.


Yes, I deliberately did not implement that GNU bug. I also avoided implementing the --prefix-of-long-option bug.


It makes me very happy that you refer to this as a bug :)


uhm, sorry? shouldn't glob be handled by the shell? I mean, the "ls" program does not handle literally '*.txt', but "foo.txt bar.txt baz.txt"


Right but ls calls getopt – and determines the meaning of the values provided.

After a glob, of say, * .txt, and let's say there are a.txt, b.txt and c.txt, if I call

ls * .txt -ltra

it expands to ls a.txt b.txt c.txt -ltra

In POSIX it expects options to appear before files, see: https://en.wikipedia.org/wiki/Getopt#Example_1_.28using_POSI...

Trust me, I wish this were not adhered to, but it is.


That's an amazingly active surface!


So, serious question. Why can't Japan use these whales for their research instead of killing more?


I'm guessing botulism is why not. Their research is acomplished inside the scientists' g.i. tracts.


Not enough anagonism or nationalist sabre rattling in that. Full disclosure: I'm from New Zealand.


"research"

Also. This is sad effin news. And that's your response?


yes, air quotes are implicit, but the Japanese who do this research probably believe whole heartedly in its necessity – it's worth having empathy for others, even if we disagree with their motivations.

This is very sad news, indeed. Are you a vegetarian? That may seem out of order, but, if you're eating meat, you're slaughtering animals as well, so, just food for thought... food :)


They probably don't wholeheartedly believe in its necessity. But the money's good.

http://www.nytimes.com/2014/10/14/opinion/the-big-lie-behind...


Thanks. That's really helpful. So basically Japan uses whaling under the guise of research to leverage their ability to access fisheries that they might otherwise be restricted from.


What research do the Japanese do with whales? Actually curious.


Nearby comment in case you missed it posted this link which is helpful: http://www.nytimes.com/2014/10/14/opinion/the-big-lie-behind...

The short answer is that they don't do real research.


As stupid as it is at least it makes sense now. Our political system has certain reached similar levels of insanity as well. They might have even been correct in their thinking in the past.


I'm vegan. Actually.

If you do some research on the topic, I'm confident that you'll find that the air quotes were not out of order.

The International Court of Justice (a body of the U.N.), Australia, and New Zealand are among others that agree the air quotes are appropriate. Japan is defying international consensus and law by continuing to kill whales.

[1] http://www.cnn.com/2015/11/30/asia/japan-whaling-research/in...


I didn't say they where out of order. I said they were implicit, and you've gone way off topic. My question was pretty direct, why don't the Japanese use these dead whales to conduct what they believe is research instead of killing more.

Also, thanks for being vegan. High five.


They don't actually do research.


Something people fail to recognize or accept is that procrastination is often a manifestation of a form of anxiety. It's an actual mental health disorder, and if you see a professional, you can actually get concrete help.


When I was at Quora, people posting Udemy courses were a major source of spam content. The system clearly has very broken incentive systems.


Since the US is the largest consumer of the tuna catches the laws are very relevant to the US. Check out this link included in the article: https://swfsc.noaa.gov/textblock.aspx?Division=PRD&ParentMen...


This is great, and I am very happy he also makes it very clear that anyone suffering depression (or any other mental health issue) should see a professional.

The stigma associated with getting professional mental health help can't go away fast enough.


I immediately thought of this. Dockercraft is the perfect modern recreation of this.


The earliest shell had most of these! [1][2]

Arguments, parameters, pattern matching, redirection, piping.

Surprisingly, this wasn't enough so Bourne became defacto in Unix v7.

Indeed, Thompson shell was small and clean, but it wasn't a spartan as you might think.

[1] https://en.wikipedia.org/wiki/Thompson_shell [2] http://man.cat-v.org/unix-1st/1/sh [3] https://en.wikipedia.org/wiki/Bourne_shell


It's terrifying that anyone has their hands on this material.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: