Re: [dev] wmii: dash, bash and tests in wmiirc

2010-07-19 Thread Kris Maglione
On Mon, Jul 19, 2010 at 03:21:43PM -0700, Suraj Kurapati wrote: On Mon, Jul 19, 2010 at 11:46 AM, LuX wrote: I wanted to add to wmii some basic ability to deal with USB pens: - mount and open them automatically when plugged in; I use ConsoleKit (by way of the Thunar file manager) for this, b

Re: [dev] wmii: dash, bash and tests in wmiirc

2010-07-19 Thread Suraj Kurapati
On Mon, Jul 19, 2010 at 11:46 AM, LuX wrote: > I wanted to add to wmii some basic ability to deal with USB pens: > > - mount and open them automatically when plugged in; I use ConsoleKit (by way of the Thunar file manager) for this, but I don't know how it works internally. I would imagine that

Re: [dev] wmii: dash, bash and tests in wmiirc

2010-07-19 Thread Kris Maglione
On Mon, Jul 19, 2010 at 08:46:32PM +0200, LuX wrote: https://bbs.archlinux.org/viewtopic.php?pid=794658#p794658 Oh, and while I'm thinking about it, it's really best not to post such scripts as diffs. I tend to just post them as they'd appear in wmiirc_local, so: foo() { ... } local_ev

Re: [dev] wmii: dash, bash and tests in wmiirc

2010-07-19 Thread Kris Maglione
On Mon, Jul 19, 2010 at 08:46:32PM +0200, LuX wrote: By the way, what I wanted to do when I encountered this "stupid" problem with -f flag, if not "clever", might at least be usefull for other people. I wanted to add to wmii some basic ability to deal with USB pens: - mount and open them autom

Re: [dev] wmii: dash, bash and tests in wmiirc

2010-07-19 Thread LuX
Hi! Thank you for your quick and complete answer. On Sun, Jul 18, 2010 at 09:30:19PM -0400, Kris Maglione wrote: > First of all, you're making things too complicated. The following > would suffice: You're right, but I wanted to know was the reason why this command didn't work in wmiirc. You gav

Re: [dev] [9base] patch to build on OpenBSD

2010-07-19 Thread Kris Maglione
On Sun, Jul 18, 2010 at 06:26:55PM +0200, Sebastian Liem wrote: diff -r 09af6227574f ed/ed.c --- a/ed/ed.c Fri Jun 04 11:44:25 2010 +0100 +++ b/ed/ed.c Sun Jul 18 17:35:53 2010 +0200 @@ -121,7 +121,7 @@ voidsetwide(void); voidsqueeze(int); voidsubstitute(int); -char* _mktemp(char

Re: [dev] Problem building dmenu tip

2010-07-19 Thread Josh Rickmar
On Mon, Jul 19, 2010 at 11:35:03AM +0200, Szabolcs Nagy wrote: > * Anselm R Garbe [2010-07-19 07:45:16 +0100]: > > > On 18 July 2010 21:40, Josh Rickmar wrote: > > > CC -o dinput > > > /usr/lib/crt0.o(.text+0x9d): In function `___start': > > > : undefined reference to `main' > > > collect2: ld r

Re: [dev] Problem building dmenu tip

2010-07-19 Thread Josh Rickmar
On Mon, Jul 19, 2010 at 08:30:40AM +0200, Szabolcs Nagy wrote: > On 7/18/10, Josh Rickmar wrote: > > in the irc channel said he remembers a similar problem when linking with > > ld on Linux. Any ideas? > > nah, that's not what i meant > > i just noted that you get similar error when you link wi

Re: [dev] [9base] patch to build on OpenBSD

2010-07-19 Thread Anselm R Garbe
On 19 July 2010 16:15, Kris Maglione wrote: > On Mon, Jul 19, 2010 at 07:48:13AM +0100, Anselm R Garbe wrote: >> Thanks for the patch. I'll apply it. It might be down to the fact that >> lib9 in 9base is quite old and some changes that made it into p9p >> didn't make it into 9base yet. > > Would y

Re: [dev] [9base] patch to build on OpenBSD

2010-07-19 Thread Kris Maglione
On Mon, Jul 19, 2010 at 07:48:13AM +0100, Anselm R Garbe wrote: Hi Sebastian, On 18 July 2010 17:26, Sebastian Liem wrote: ehlo, I had to do some changes to successfully build 9base on OpenBSD-current. Changes  a. include in lib9/_p9dir.c (already done in plan9port)  b. s/_mktemp/__mktemp/

Re: [dev] Problem building dmenu tip

2010-07-19 Thread Szabolcs Nagy
* Anselm R Garbe [2010-07-19 07:45:16 +0100]: > On 18 July 2010 21:40, Josh Rickmar wrote: > > CC -o dinput > > /usr/lib/crt0.o(.text+0x9d): In function `___start': > > : undefined reference to `main' > > collect2: ld returned 1 exit status > > *** Error code 1 > > > > Stop in /home/joshua/src/d