[odf-discuss] Problem with Google Code
Daniel Carrera
daniel.carrera at zmsl.com
Mon Jan 15 08:08:55 EST 2007
On Mon, 2007-15-01 at 13:46 +0100, Peter Vandenabeele wrote:
> $ dirname $0
> dirname: invalid option -- b
> Try `dirname --help' for more information.
Aha! So 'dirname' is not as portable as I thought.
I'll need to think of a new way to obtain the directory where the script
is. The only purpose of this is to cd to the data directory:
DATA_DIR=`dirname $0`/data-01a1236688
There is no guarantee that the user will run the program from the same
directory where the program resides. You could well run:
./odfviewer-linux-beta1/odfviewer-installer
So, suddenly, I can't do 'cd data-01a1236688' and I can't use `pwd`.
I'll need to think about this.
Thanks for the help Peter!
Cheers,
Daniel.
-- French is essentially Latin spoken by Germans.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 191 bytes
Desc: This is a digitally signed message part
Url : http://lists.opendocumentfellowship.com/pipermail/odf-discuss/attachments/20070115/ef08f7ad/attachment-0001.pgp
More information about the odf-discuss
mailing list