jpeps wrote:Check what shell you're using: "ps | grep $$"
Code: Select all
echo $0
jpeps wrote:Check what shell you're using: "ps | grep $$"
Code: Select all
echo $0
Code: Select all
XDG_CONFIG_DIRS=/etc/xdg
XDG_DATA_DIRS=/usr/share:/usr/local/share
XFINANSDIR=/root/.xfinans
Code: Select all
App _Dir
Yes i noticed this at the prompt .technosaurus wrote:Is /bin/sh pointing to bash or busybox and do you have stock puppy bash, because bash can be configured to have different behavior when called as sh.
Code: Select all
21-Jul-2000
~~~~~~~~~~~
In the path entry minibuffer, an exact match is favoured over any other
match. So, if you enter '.xsession' and press Return you'll get it, not
'.xsession-errors' or whatever!
The filer now clears APP_DIR from the environment so that child processes
don't get it. Fixed a bug which caused problems when using a small version
of the 'missing image' image.
Code: Select all
unset APP_DIR
export APP_DIR
program-to run
# or:
APP_DIR=/path/to/somewhere program-to-run
Code: Select all
# Check for links and get APP_DIR
if [ ! -L "$0" ] ; then
APP_DIR=`dirname "$0"`
APP_DIR=`cd "$APP_DIR";pwd`
elif [ ! -z `which readlink 2> /dev/null` ] ; then
APP_DIR=`readlink -f "$0"`
APP_DIR=`dirname "$APP_DIR"`
else
echo "$PROG: Can't get real path to AppRun!" 1>&2
fi
export APP_DIR
It doesn't work from /etc/init.d. Unsetting it first doesn't work either. There's no problem using it as a local variable.amigo wrote: APP_DIR is not a 'proprietary' enivronmental variable.