On Fri, Jan 15, 2010 at 11:28 AM, Guilherme Bedin <gbe...@gmail.com> wrote: > Hi, > > I just download it and here, and I am getting a small error > > /Programs/Scripts/Current/bin/../Functions/GoboLinux: line 640: syntax > error near unexpected token `<' > /Programs/Scripts/Current/bin/../Functions/GoboLinux: line 640: ` > done < <(find "${programpath}" -mindepth 2 )' > > the error is at > function Get_System_Paths () { > Parameters "$1" programpath > while read path > do > Programs_To_System_Path "${path}" > done < <(find "${programpath}" -mindepth 2 ) > } > > and with Hisham help I fixed it with: > > function Get_System_Paths () { > Parameters "$1" programpath > while read path > do > Programs_To_System_Path "${path}" > done | (find "${programpath}" -mindepth 2 ) > } That definitely doesn't work - if anything, you pipe find into the while, not the other way around. `foo < <(...)` is equivalent to `... | foo`, except without creating another shell. It's Bash process substitution, see <http://mywiki.wooledge.org/ProcessSubstitution/>.
Which script are you getting the error from? That generally means something is claiming to be a sh script when it's actually bash, and your /bin/sh is dash or true Bourne shell. It could also be a pre-3.1 Bash. I thought we'd weeded out all the pretend sh scripts by now. -Michael _______________________________________________ gobolinux-devel mailing list gobolinux-devel@lists.gobolinux.org http://lists.gobolinux.org/mailman/listinfo/gobolinux-devel