code logs -> 2016 -> Sat, 17 Sep 2016< code.20160916.log - code.20160918.log >
--- Log opened Sat Sep 17 00:00:57 2016
02:15 macdjord|slep is now known as macdjord
02:36
<@celticminstrel>
It'd be nice if I could add a message to a stash without applying and restashing it...
02:45 Vornicus [Vorn@ServerAdministrator.Nightstar.Net] has quit [Ping timeout: 121 seconds]
03:01 Vash [Vash@Nightstar-uhn82m.ct.comcast.net] has quit [[NS] Quit: Quit]
03:39 catadroid [catadroid@Nightstar-a6caib.dab.02.net] has joined #code
03:39 catalyst [catalyst@Nightstar-bt5k4h.81.in-addr.arpa] has quit [[NS] Quit: Leaving]
04:33
<@celticminstrel>
Okay, either bash or xmllint is splitting my path on space when I don't want it to...
04:34
<@celticminstrel>
Passing as "$var"
04:35
<@celticminstrel>
The only place I didn't quote the variables is in eg [[ -f $1 ]]
04:36
<@celticminstrel>
Oh, I didn't quote them in the foreach loop. That could be the culprit.
04:36
<@celticminstrel>
But wait, there's globs there too...
04:37
<@celticminstrel>
Woah I think I just saw a subtle bug. I really don't want it to remove this folder once it's done checking it.
04:37
<@celticminstrel>
(But this is unrelated to the other issue.)
04:38 * celticminstrel almost types man bach
04:40
<@celticminstrel>
Huh? Does [[ ]] not support && and || logical operators?
04:40
<&[R]>
In shell?
04:40
<@celticminstrel>
Even if they're called something else, as in test.
04:40
<@celticminstrel>
Yeah.
04:41
<&[R]>
Bash it does
04:41
<@celticminstrel>
Nothing about them under "conditional expressions" in man bash.
04:41
<@celticminstrel>
How are they spelled?
04:41
<&[R]>
help [[
04:41
<@celticminstrel>
Help is a thing?
04:41
<&[R]>
Yuop
04:41
<&[R]>
It's a bash internal
04:41
<@celticminstrel>
That's for built-ins?
04:41
<&[R]>
Yup
04:42
<@celticminstrel>
I wish I'd known this, like, years ago.
04:42
<@celticminstrel>
So it's && / || okay.
04:42
<@celticminstrel>
Do you know if "some path/with spaces/*and*globs" would expand to separate elements for each path the glob matches, while retaining the path-internal spaces?
04:43 * celticminstrel will test in a moment regardless, though.
04:43
<@celticminstrel>
Bah, as I suspected the glob is not expanded. :(
04:44
<@celticminstrel>
Wait, why don't I just cd to the base path. It's a shell script, so the current directory is only for the script.
04:45
<@celticminstrel>
Okay, that works.
04:47
<@celticminstrel>
...wait, I just realized that I want the leaf of the $1 path rather than the full $1.
04:47
<@celticminstrel>
I'm sure there's a syntax for it, but I might have to trawl through the entire manpage to find it.
04:49
<@celticminstrel>
Someone should write a pager that builds a table of contents and lets you jump to any given header.
04:50
<@celticminstrel>
I should probably also figure out how to do a case-sensitive search in less.
04:50 * celticminstrel is assuming it's less, at least.
04:51
<&[R]>
In man?
04:51
<@celticminstrel>
Yeah.
04:51
<&[R]>
On most systems yes. On OpenBSD it's more (because they're randomly backwards like that)
04:51
<@celticminstrel>
On my system, more is less.
04:51
<&[R]>
export PAGER=vim
04:52
<@celticminstrel>
Which is why at one point I set my Skype comment to "Never assume more is less", because something (possibly my VPS?) had both of them separately.
04:52
<&[R]>
Ah derp, that doesn't work
04:53
<&[R]>
export PAGER="vim -" does, but it doesn't like the color codes
04:54
<@celticminstrel>
I feel like one of ${1#...} ${1##...} ${1%...} ${1%%...} will do what I want, but the description is too obtuse to figure out which at a glance.
04:55
<@celticminstrel>
I guess % / %% since they match the trailing part...
04:55
<&[R]>
I don't even know how those work TBH
04:55
<@celticminstrel>
Nor do I.
04:56
<@celticminstrel>
I guess I'll do some simple tests.
04:57
<@celticminstrel>
${1##*/} seems to have the desired effect.
04:58
<@celticminstrel>
TextWrangler things the # starts a comment.
04:58
<@celticminstrel>
^thinks
05:05 Kindamoody is now known as Kindamoody[zZz]
05:12 Derakon is now known as Derakon[AFK]
05:12
<@celticminstrel>
Getting weird xmllint errors on a seemingly valid line...
05:13
<@celticminstrel>
"Cdata section not finished" ... "PCDATA invalid Char value 22" ... "Sequence ']]>' not allowed in content" ... "internal error: detected an error in element content"
05:13
<@celticminstrel>
There is no char value 22 in either hex or decimal.
05:14
<@celticminstrel>
...I could try octal I guess.
05:14
< McMartin>
22 is " in hex, and a wacky control character in decimal
05:14
<@celticminstrel>
Yeah, the error is pointing at period.
05:14
<@celticminstrel>
Or more precisely, the empty space after one.
05:15
<@celticminstrel>
Wait.
05:16
<@celticminstrel>
Bah, I didn't check "Control Characters" when telling TextWrangler to zap gremlins. The space was, indeed, 0x22.
05:16
<@celticminstrel>
I'm not going to question how it got there unless I see it crop up again.
05:25 gizmore [kvirc@Nightstar-b3cskf.dip0.t-ipconnect.de] has joined #code
07:15 macdjord is now known as macdjord|slep
07:18 Vornicus [Vorn@ServerAdministrator.Nightstar.Net] has joined #code
07:18 mode/#code [+qo Vornicus Vornicus] by ChanServ
07:30 Kindamoody[zZz] is now known as Kindamoody
07:45 celticminstrel [celticminst@Nightstar-f4fn3d.dsl.bell.ca] has quit [[NS] Quit: And lo! The computer falls into a deep sleep, to awake again some other day!]
08:31 catadroid` [catadroid@Nightstar-qmckmi.dab.02.net] has joined #code
08:31 Vornicus [Vorn@ServerAdministrator.Nightstar.Net] has quit [Ping timeout: 121 seconds]
08:34 catadroid [catadroid@Nightstar-a6caib.dab.02.net] has quit [Ping timeout: 121 seconds]
08:40 catadroid` is now known as catadroid
10:59 Kindamoody is now known as Kindamoody|afk
11:07 Vornicus [Vorn@ServerAdministrator.Nightstar.Net] has joined #code
11:07 mode/#code [+qo Vornicus Vornicus] by ChanServ
12:46 catalyst [catalyst@Nightstar-bt5k4h.81.in-addr.arpa] has joined #code
14:37 celticminstrel [celticminst@Nightstar-f4fn3d.dsl.bell.ca] has joined #code
14:37 mode/#code [+o celticminstrel] by ChanServ
14:52 VirusJTG [VirusJTG@Nightstar-6i5vf7.sta.comporium.net] has quit [Ping timeout: 121 seconds]
15:01 catadroid` [catadroid@Nightstar-2dos1l.dab.02.net] has joined #code
15:04 catadroid [catadroid@Nightstar-qmckmi.dab.02.net] has quit [Ping timeout: 121 seconds]
15:15 catadroid` [catadroid@Nightstar-2dos1l.dab.02.net] has quit [Ping timeout: 121 seconds]
18:02 macdjord|slep is now known as macdjord|fude
19:02
<@ErikMesoy>
Oh, nice going, Intel. Your graphics fiddlything has a blank icon in the toolbar.
19:22 gizmore [kvirc@Nightstar-b3cskf.dip0.t-ipconnect.de] has quit [Ping timeout: 121 seconds]
19:22 gizmore [kvirc@Nightstar-tmcj9b.dip0.t-ipconnect.de] has joined #code
19:44 Kindamoody|afk is now known as Kindamoody
20:04 macdjord|fude is now known as macdjord
21:28 catalyst [catalyst@Nightstar-bt5k4h.81.in-addr.arpa] has quit [Connection closed]
21:30 catadroid [catadroid@Nightstar-9mfqld.dab.02.net] has joined #code
21:43 catadroid` [catadroid@Nightstar-o31.jtr.132.82.IP] has joined #code
21:46 catadroid [catadroid@Nightstar-9mfqld.dab.02.net] has quit [Ping timeout: 121 seconds]
21:50 Derakon[AFK] is now known as Derakon
22:20
<@Alek>
Erik: probably not their fault, probably a graphics glitch. it happens every once in a while in my experience, on multiple computers, to multiple different taskbar icons.
22:20
<@Alek>
or er. could be graphics, could be desktop windows manager, could be something else.
23:01 catadroid` is now known as catadroid
23:19 gizmore [kvirc@Nightstar-tmcj9b.dip0.t-ipconnect.de] has quit [Operation timed out]
23:20 gizmore [kvirc@Nightstar-ao65ai.dip0.t-ipconnect.de] has joined #code
23:21 Kindamoody is now known as Kindamoody[zZz]
--- Log closed Sun Sep 18 00:00:13 2016
code logs -> 2016 -> Sat, 17 Sep 2016< code.20160916.log - code.20160918.log >

[ Latest log file ]