From: Johannes Schindelin Date: Wed, 13 Apr 2005 23:07:28 GMT Subject: Re: Slight enhancement of GIT wrapper Message-ID: In-Reply-To: <20050413225509.GL25711@pasky.ji.cz> Hi, On Thu, 14 Apr 2005, Petr Baudis wrote: > Dear diary, on Wed, Apr 13, 2005 at 10:49:16PM CEST, I got a letter > where Pavel Pisa told me that... > > > + > > +if [ -h "$0" ]; then > > + GIT_DIR=`ls -l "$0" | sed 's/^.*-> *\(.*\) *$/\1/'` > > Well, I don't like this much, but I'm not sure how to do better. How about GIT_DIR=$(ls -L "$0") Ciao, Dscho