@kapoira
You can't use pwd to figure out where a script lives because ContentLister uses absolute paths to execute the scripts. The current working directory is often set to / when the script is run.
If you look at run.sh in one of the binary apps (x48, gnuchess...) you'll see one method to lookup where a script is being executed from.
The script is being placed in news to make it easily accessible by pressing the news button on the iLiad.
I feel Yokos has done very well at making this script accessible to non-unix-admin users. The intent of the script is to be extremely easy to understand and use, not to be flexible in where it can be executed from. Your "Average Joe" user is happy to be told exactly where to put the script to use it and can get baffled if the instructions say things like "Now go where you put the script..."
|