Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Question 1: Why did you run cloc as root?

Question 2: Why does Doom 3 involve 33,717 lines of bash? That's a lot of bash. I realise it's used heavily for build scripts, but thirty three thousand lines seems excessive.



For question 2: It is essentially the configure script of the included curl library.

    $ wc -l neo/curl/configure
    31052 neo/curl/configure


Question 1: Why did you run cloc as root?

Hmmm, because of a really bad habit I need to break. ;)


If your habit is what I think it is, I have the opposite habit - I never use sudo until it tells me I've tried to do something I'm not allowed to do - even if I know it's not going to let me. Then I use "sudo !!"


> Then I use "sudo !!"

Wow. For six years I've been doing "UP + CTRL^A + sudo + SPACE" instead. This is much better.


Off-topic:

I use Ctrl-P Ctrl-A sudo <space> which is exactly the same number of keystrokes as "sudo !!" and a much more general solution in my opinion.


No clue about question 1 but 32,607 of those lines are all part of curl which seems to be distributed with the source code.


How does it matter?




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

Search: