Re: X fails to start with latest Linus git

From: Ingo Molnar
Date: Sun Jan 27 2008 - 07:39:56 EST



* Kevin Winchester <kjwinchester@xxxxxxxxx> wrote:

> although it is not complete. For some reason (xubuntu, probably) dash
> is my default shell and it does not like the for loop at line 69 of
> that script:
>
> for ((i=0; i<5; i++)); do
> echo "-- sched_debug #$i: --" >> $FILE
> date >> $FILE
> cat /proc/sched_debug >> $FILE 2>/dev/null
> sleep 1
> done
>
> Not being a shell scripter, I have no idea how to port that to dash.

oops, stick this to the top of the script:

#!/bin/bash

as that loop is a bashism. (I've updated the script on my site as well.)

Ingo
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/