« first day (936 days earlier)      last day (2105 days later) » 

3:34 AM
@NonnyMoose This is somewhat unusual. Usually you can at least see tripleee checking up on Queen. And people popping in for questions and such.
 
 
3 hours later…
6:26 AM
Hopefully I hear back on this one.
I saw this line in the Linux From Scratch manual bzip2 --version 2>&1 < /dev/null. I'm clueless as to why they are connection the command's STDIN to /dev/null. I understand that's something you want to do if you've got a daemon, but what's the reason here?
All this part of the script is doing is extracting the version of bzip2....
Full line: bzip2 --version 2>&1 < /dev/null | head -n1 | cut -d" " -f1,6-
 
 
9 hours later…
3:47 PM
@Ungeheuer I know that bzip2 outputs version on stderr, so they redirect it to stdout
I'm not sure why they're sending /dev/null to stdin though
It seems unnecessary. Reading from /dev/null immediately yields EOF
The relevant section is here: linuxfromscratch.org/lfs/downloads/stable/…
I can verify, however, that this is unnecessary on the current version of bzip2. The output is the same.
 
4:04 PM
... and looking at the source code, it seems like bzip2 has never read from stdin before processing the --version argument. That might be a mistake, or the result of a misguided assumption.
 
4:25 PM
@NonnyMoose "misguided assumption" RIP to my LFS build lol
Thanks for the help mate, I figured something was wrong there.
 
No, seriously, a lot of linux stuff has that problem
Like saying, `mv ~ /dev/null` pwns your home.
It seems true, but no
 
I might try that after taking a snapshot of my VM
One quick question. I've seen some lines like this someStuff > someProg > outFile
 
... that doesn't sound right
hold on a minute
 
I understand someProg's STDOUT is redirected to outFile, but what is going on with someStuff? It's placement is strange, and confuses me.
 
actually, I just tried an example
somestuff's stdout is redirected to outfile
and a file named someprog was created, but left empty
uhh?
well that's almost definitely wrong
I'm still not sure *what* it does
 
4:34 PM
I'll have to try later.
 
I feel like I might be wrong here, at least a little bit. Anyone know for sure by chance?
 
I'll try to find the exact line.
 

« first day (936 days earlier)      last day (2105 days later) »