Re: [dwm] problem with dmenu3.1

2007-05-23 Thread Jukka Salmi
Frank Pirnay -- dwm (2007-05-23 01:35:13 +0200): ok, I noticed the segfault when running dmenu_path manually. So that is the only output I get using uxterm or bash. Actually dmenu is running fine. I am using Ubuntu 7.04, 2.6.20-15-generic kernel on 2 systems but I have this problem only on

Re: [dwm] problem with dmenu3.1

2007-05-23 Thread Jukka Salmi
Frank Pirnay -- dwm (2007-05-23 09:16:45 +0200): I thought about broken hardware too... I will try some memtesting today. That's probably a good idea. Anyway, this is my output: + CACHE=/home/knarf/.dmenu_cache + UPTODATE=1 + IFS=: + test ! -f /home/knarf/.dmenu_cache + test 1 + test

Re: [dwm] problem with dmenu3.1

2007-05-23 Thread David Tweed
Anyway, this is my output: + CACHE=/home/knarf/.dmenu_cache + UPTODATE=1 + IFS=: + test ! -f /home/knarf/.dmenu_cache + test 1 + test /home/knarf/bin -nt /home/knarf/.dmenu_cache + test /usr/local/sbin -nt /home/knarf/.dmenu_cache + test /usr/local/bin -nt /home/knarf/.dmenu_cache +

Re: [dwm] problem with dmenu3.1

2007-05-23 Thread Premysl \anydot\ Hruby
A silly question: can you generate the order in which it queries things without actually doing the test and see what is being tested when the crash occurs, and then look to see if it's some strange filesystem object (a socket, dangling symlink, etc). The fact it's happening at the same place

Re: [dwm] problem with dmenu3.1

2007-05-23 Thread Jukka Salmi
Jukka Salmi -- dwm (2007-05-23 10:53:21 +0200): Frank Pirnay -- dwm (2007-05-23 09:16:45 +0200): I thought about broken hardware too... I will try some memtesting today. That's probably a good idea. Anyway, this is my output: + CACHE=/home/knarf/.dmenu_cache + UPTODATE=1 +

Re: [dwm] problem with dmenu3.1

2007-05-23 Thread Premysl \anydot\ Hruby
2007/5/23, Anselm R. Garbe [EMAIL PROTECTED]: Thanks! I applied it to the repo, however I'm not totally sure the use of [ is a good idea. Is [ a symlink to test in any Unix? Regards, -- Anselm R. Garbe http://www.suckless.org/ GPG key: 0D73F361 So, if functions are allowed then maybe

Re: [dwm] problem with dmenu3.1

2007-05-23 Thread Jukka Salmi
Premysl anydot Hruby -- dwm (2007-05-23 13:42:58 +0200): So, if functions are allowed then maybe even better can be this: --- a/dmenu_pathWed May 23 13:22:27 2007 +0200 +++ b/dmenu_pathWed May 23 13:37:33 2007 +0200 @@ -1,22 +1,16 @@ #!/bin/sh CACHE=$HOME/.dmenu_cache

Re: [dwm] problem with dmenu3.1

2007-05-23 Thread Diego Biurrun
On Wed, May 23, 2007 at 04:18:34PM +0200, Sander van Dijk wrote: On 5/23/07, Anselm R. Garbe [EMAIL PROTECTED] wrote: Thanks! I applied it to the repo, however I'm not totally sure the use of [ is a good idea. Is [ a symlink to test in any Unix? I don't know, I do know it's a symlink to test

Re: [dwm] problem with dmenu3.1

2007-05-23 Thread Sander van Dijk
On 5/23/07, Diego Biurrun [EMAIL PROTECTED] wrote: The emacs comparison is nonsensical. test is a builtin in most shells (offhand bash, ash, dash, ksh, pdksh, zsh, sash on this Debian system where I have a login shell), so of course [ should be a builtin, too. They're the same thing after all.

Re: [dwm] problem with dmenu3.1

2007-05-23 Thread Sander van Dijk
On 5/23/07, Jukka Salmi [EMAIL PROTECTED] wrote: Sander van Dijk -- dwm (2007-05-23 16:18:34 +0200): I don't know, I do know it's a symlink to test in many linux distros. I personally hate it though, since it obscures the fact that you are calling a program (test is much clearer in this sense

Re: [dwm] problem with dmenu3.1

2007-05-23 Thread Anselm R. Garbe
On Wed, May 23, 2007 at 09:28:47PM +0200, Marek Bernat wrote: On 5/23/07, Sander van Dijk [EMAIL PROTECTED] wrote: That's how it used to be, and I do believe that represents the original UNIX spirit (do one thing, and do that right) much better than the way it is in UNIX-like systems today.

Re: [dwm] problem with dmenu3.1

2007-05-23 Thread Anselm R. Garbe
On Wed, May 23, 2007 at 01:42:58PM +0200, Premysl anydot Hruby wrote: 2007/5/23, Anselm R. Garbe [EMAIL PROTECTED]: Thanks! I applied it to the repo, however I'm not totally sure the use of [ is a good idea. Is [ a symlink to test in any Unix? Regards, -- Anselm R. Garbe

[dwm] togglebar/xrandr with dwm 4.1

2007-05-23 Thread Christian Garbs
Hi, changing resolutions while the bar is visible works as desired. But when the bar is invisible and the resolution is changes, the bar height is still subtracted from the screen size in configurenotify(). Windows won't go fullscreen anymore. After calling togglebar twice everything is ok. I

Re: [dwm] problem with dmenu3.1

2007-05-23 Thread Marek Bernat
On 5/23/07, Sander van Dijk [EMAIL PROTECTED] wrote: Have you seen any language that make calls to tr, sed, awk, cut, cat, etc.? Of course not. One could abuse the system() call of C to do that, but that would just be stupid. Then why do we continuously do this with the shell? Because the

Re: [dwm] problem with dmenu3.1

2007-05-23 Thread Marek Bernat
On 5/23/07, Jukka Salmi [EMAIL PROTECTED] wrote: Sander van Dijk -- dwm (2007-05-23 23:03:10 +0200): On 5/23/07, Marek Bernat [EMAIL PROTECTED] wrote: On the other hand kill, echo and other programs like this should of course be outside the shell. Yes, [...] ...but on a system where you