This prevents scripts executing the queue from having to cd into shell/ before executing the script. Just a little peeve of mine, having to add cd && everywhere.
Note that cli populates SCRIPT_FILENAME with argv[0]. This works fine on Windows, Mac, and Linux. It specifically supports a symlinked setup where shell/queue.php is a symlink, but works also when copied.
If for some reason someone does e.g. cd shell/ && php ../.modman/magento-lilmuckers_queue/shell/queue.php, it will fall back to the existing behavior and use abstract.php in the current working dir.
This prevents scripts executing the queue from having to cd into shell/ before executing the script. Just a little peeve of mine, having to add
cd &&
everywhere.Note that cli populates
SCRIPT_FILENAME
withargv[0]
. This works fine on Windows, Mac, and Linux. It specifically supports a symlinked setup where shell/queue.php is a symlink, but works also when copied.If for some reason someone does e.g.
cd shell/ && php ../.modman/magento-lilmuckers_queue/shell/queue.php
, it will fall back to the existing behavior and useabstract.php
in the current working dir.