[m-users.] Path independence?
Peter Wang
novalazy at gmail.com
Mon Jul 29 11:45:42 AEST 2013
On Mon, 29 Jul 2013 11:35:42 +1000 (EST), Julien Fischer <jfischer at opturion.com> wrote:
>
> On Sat, 27 Jul 2013, Peter Wang wrote:
> >
> > We can prepend $PWD if necessary (falling back to `pwd`).
> > Would that do it?
>
> That would just give you the directory in which invoke mmc, not the
> directory in which mmc resides.
Er, I meant something like this:
dir=${0%/*}
case "$dir" in
/*) ;;
*) dir="$PWD/$dir" ;;
esac
Peter
More information about the users
mailing list