2015 Feb 19
Thu: |
16:57 |
< | koala_man | | > |
you could always make a not() { ! "$@"; }; but there's really no point |
16:57 |
< | bwe | | > |
If ${parents[@]: -1} gives me the last value, why does ${!parents[@]: -1} not give me the last key? |
16:58 |
< | koala_man | | > |
it's not the 'eval' keyword that is evil, but the practice of 1) excuting potentially unsafe data and 2) storing code as strings. |
16:58 |
< | lhunath | @ | > |
because !parents[@] isn't a parameter name. |
2015 Feb 21
Sat: |
06:48 |
< | blackmesa | | > |
is 'eval' or 'exec' in shell scripts common to use? |
06:48 |
< | izabera | | > |
exec is, eval should be avoided when possible |
06:48 |
< | gniourf | | > |
eval is evil as some say |
06:48 |
< | blackmesa | | > |
yea I thought so. But see it in alot of scripts |
2015 Feb 22
Sun: |
13:53 -!- MadHatter42 [~MadHatter@unaffiliated/madhatter42] has joined #bash |
13:54 |
< | izabera | | > |
seq 1000 | xargs touch |
13:54 |
< | hyper_ch | | > |
xargs is evil |
13:54 |
< | izabera | | > |
damn |
13:59 |
< | hyper_ch | | > |
while loop is also posix I think |
13:59 |
< | izabera | | > |
sure it is but that would be sloooooow |
13:59 |
< | hyper_ch | | > |
and xargs is so evil |
13:59 |
< | hyper_ch | | > |
!find |
14:00 |
< | hyper_ch | | > |
there's more on xargs evilness :) |
14:00 |
< | gniourf | | > |
in this situation? |
14:00 |
< | dualbus | | > |
xargs is evil because a factoid says so. Therefore, it's evil. Don't question that, please. |
14:01 -!- bullfrog [~bullfrog@24-183-9-8.dhcp.ftbg.wi.charter.com] has quit [Read error: Connection reset by peer] |
14:08 |
< | dualbus | | > |
hyper_ch: I'm sorry to hear that. But I've had that issue, and xargs is simple enough to use. |
14:09 |
< | dualbus | | > |
Why is it labeled as evil? because greycat said so, most likely. Why? because it takes shell quoted input by default. Is that evil? A bit. Does that make xargs not useful? not at all. |
14:10 |
< | dualbus | | > |
IMO, the mechanism that bash has for allowing most of ormaaj's bombs is evil. Does that mean I'll stop using bash? No |
14:10 |
< | dualbus | | > |
!ormaajbomb2 |
2015 Feb 26
Thu: |
21:36 |
< | shbot | | > |
izabera: curl url0 url1 |
21:36 |
< | FreezingCold | | > |
hyphenated: they remove it because for some reason they still want to host their own html pages |
21:36 |
< | FreezingCold | | > |
I used coursehero.com today for finding old content, god that company is evil |
21:36 -!- EGreg [~egreg@ool-4a59fb8b.dyn.optonline.net] has joined #bash |
2015 Mar 02
Mon: |
04:27 |
< | Boobuigi | | > |
Removing the eval causes the command to fail. |
04:27 -!- MissionCritical [~MissionCr@unaffiliated/missioncritical] has quit [Max SendQ exceeded] |
04:28 |
< | Boobuigi | | > |
I want to remove the eval, though, because greybot has done a good job brainwashing me to believe it is evil. |
04:28 -!- uZiel [~uZiel@c-24-130-108-94.hsd1.ca.comcast.net] has quit [Ping timeout: 240 seconds] |