lkml.org 
[lkml]   [2008]   [Jan]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: X fails to start with latest Linus git

* Kevin Winchester <kjwinchester@gmail.com> 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


\
 
 \ /
  Last update: 2008-01-27 13:43    [W:0.045 / U:0.876 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site