[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Groff] Bug in soelim
From: |
Werner LEMBERG |
Subject: |
Re: [Groff] Bug in soelim |
Date: |
Fri, 03 Oct 2008 06:13:59 +0200 (CEST) |
> The manpage for soelim (and groff) says of the -I option: "specify a
> directory to search for files (both those on the command line and
> those named in .so requests). The current directory is always
> searched first."
>
> Reality (with foo.ms in the current directory and in
> /usr/share/groff/site-tmac/):
>
> % soelim -I/usr/share/groff/site-tmac/ foo.ms bar.ms | grep '\.lf'
> .lf 1 /usr/share/groff/site-tmac/foo.ms
> .lf 1 ./bar.ms
>
> % soelim -I/usr/share/groff/site-tmac/ ./foo.ms bar.ms | grep '\.lf'
> .lf 1 /usr/share/groff/site-tmac/./msweb.ms
> .lf 1 ./bar.ms
>
> Is there a workaround I can use to force groff/soelim to read foo.ms
> in the current directory?
I'm very sorry about this, it's a documentation error on my side --
I've never touched the logic of the related source code. It should
read as follows:
-Idir This option may be used to add a directory to the search path
for files (both those on the command line and those named in
.so requests). The search path is initialized with the
current directory. This option may be specified more than
once; the directories are then searched in the order specified
(but before the current directory). If you want to make the
current directory be read before other directories, add `-I.'
at the appropriate place.
No directory search is performed for absolute files.
I'll update groff.texinfo and all corresponding man pages.
Werner