Page 1 of 1

Get gtkdialog EditBox to use function... [Solved]

Posted: Tue 20 Apr 2010, 14:05
by sunburnt
I have an EntryBox cating a file through sed that works, why won`t a EditBox run a function?
I have:

Code: Select all

  menuITEMS() { echo "$(<$menuPF)" |sed -n '/#<.*_ITEMS/,/#>.*_ITEMS/p' |egrep -v '(<|>)'
  } ; export -f menuITEMS

    <edit><variable>ITEMS</variable><input>menuITEMS</input></edit>
The function gets a list from between 2 List-Start and List-End markers. It works...
The error: gtkdialog: Warning: Could not stat 'Command:menuITEMS'..