_moth_ has quit [Remote host closed the connection]
_moth_ has joined #crux
_moth_ has quit [Ping timeout: 248 seconds]
_moth_ has joined #crux
guido_rokepo has quit [Quit: guido_rokepo]
_moth_ has quit [Remote host closed the connection]
_moth_ has joined #crux
farkuhar has quit [Quit: zzz]
_moth_ has quit [Remote host closed the connection]
_moth_ has joined #crux
farkuhar has joined #crux
<farkuhar>
groovy3shoes, more bash weirdness: a nested subshell is supposed to inherit 'set -e' from its parent shell, but an exception is made for subshells spawned by command substitutions. Less clearly documented is that a subshell prefaced by 'if' or 'while' also cannot be told to 'set -e'. The subshell has to be on its own line (simple command vs. compound command) in order for 'set -e' to have any effect.
<farkuhar>
from what i've read, this behaviour changed sometime between bash 3 and bash 4. Anyway, this quirk of bash required a slight change to pkgmeek. The version I uploaded earlier today is now accurately catching failed builds and refusing to continue. It must be a sign that port quality is pretty high, if it took almost two weeks of testing to discover this bug.
<SiFuh>
Why is it called pkgmeek?
<farkuhar>
first because twinned characters (like ee or dd) are easy to type, so it doesn't require much more effort than typing pkgmk. second, because the "ee" cluster in some languages would be pronounced like the "long a" in the English word "make", so pkgmake and pkgmeek could be regarded as homophones.
<farkuhar>
something else i worked on today: prt-auf is now able to save build logs, recognizing all the variables allowed in prt-get.conf (%n, %p, %r, and %v). This feature brings prt-auf closer to feature parity with prt-get, still using only 850 lines of Perl.
<SiFuh>
Cool
<SiFuh>
I was learning Perl unless and given.
<SiFuh>
I was not happy with unless
<farkuhar>
What's the problem with unless?
<SiFuh>
Many of his larger examples 'appear' to work until you change the variable
<SiFuh>
Starting from around section 3 the second problem
<SiFuh>
I think there was one before it and the rest sucked after it
<farkuhar>
I only use Perl unless as a post-condition on a single command. When i have more than one command whose execution is contingent on the result of some test, i put the condition up front.
<SiFuh>
THe problem is not really unless in this script
<farkuhar>
That's an ugly example of perl-unless in Section 3. For convoluted chains of conditions, i find that an if/elsif/.../else block is easier to reason about than an unless/elsif/.../else block.
<SiFuh>
If I change $a to zero it says a is less than 0
<SiFuh>
So it seems that when it hist $a > 0 and it finds out it is not it just prints it is less than 0 and doesn't seem to bother with any more of the script
<SiFuh>
hits*
<SiFuh>
Anyway, I should sleep, busy days
<farkuhar>
The example on that page is incorrectly negating the claim "$a > 0" at the very beginning, so it's not surprising that the output should look wrong. Anyway, sleep well SiFuh!
<SiFuh>
Yeah, I mess with all the scripts to understand them. This one annoyed me the most
<SiFuh>
His tutorial is rife with errors but still, it is okay
cybi has joined #crux
<groovy3shoes>
farkuhar, huh, i didn't know about those exceptions. that's good to know. i've got some notes from my testing, but i wanted to try a few more things before sending them your way.
<groovy3shoes>
also: it is written, the meek shall inherit the earth.
ppetrov^ has quit [Quit: Leaving]
<farkuhar>
groovy3shoes: it appears that shellcheck-bin also doesn't know about those exceptions. It kept warning me that testing the exit status indirectly was poor coding style, and I foolishly implemented the suggested change. Now that I'm aware of such deficiencies in shellcheck, I'll take its recommendations with a grain of salt.
_moth_ has quit [Ping timeout: 260 seconds]
cybi has quit [Read error: Connection reset by peer]
gub_ has joined #crux
gub has quit [Ping timeout: 250 seconds]
ax has quit [Ping timeout: 250 seconds]
gub_ is now known as gub
_moth_ has joined #crux
ax has joined #crux
cybi has joined #crux
cybi has quit [Read error: Connection reset by peer]