bash: /Programs/Bash/3.1 and I was running StopTask and StartTask
On Thu, Jan 14, 2010 at 9:16 PM, Hisham <hisham...@gmail.com> wrote: > On Thu, Jan 14, 2010 at 8:40 PM, Michael Homer <mich...@gobolinux.org> wrote: >> 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/>. > > My suggestion was actually to flip the commands around: > > find "${programpath}" -mindepth 2 | while read path > do > Programs_To_System_Path "${path}" > done > > -- Hisham > _______________________________________________ > gobolinux-devel mailing list > gobolinux-devel@lists.gobolinux.org > http://lists.gobolinux.org/mailman/listinfo/gobolinux-devel > _______________________________________________ gobolinux-devel mailing list gobolinux-devel@lists.gobolinux.org http://lists.gobolinux.org/mailman/listinfo/gobolinux-devel