[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: info -f does not ignore ./
From: |
Eli Zaretskii |
Subject: |
Re: info -f does not ignore ./ |
Date: |
Mon, 07 Mar 2005 22:09:51 +0200 |
> From: Bruno Haible <address@hidden>
> Date: Mon, 7 Mar 2005 16:38:05 +0100
>
> According to POSIX, a "./" in a path is redundant and can be omitted.
> Not so for the info program's -f option
Indeed, it's not.
> which is documented as
>
> -f, --file=FILENAME
> specify Info file to visit.
Well, that's a short version of the -f documentation. The longer
version (in the manual of the stand-alone Info reader) says:
`--file FILENAME'
`-f FILENAME'
Specify a particular Info file to visit. By default, Info visits
the file `dir'; if you use this option, Info will start with
`(FILENAME)Top' as the first file and node.
If FILENAME is an absolute file name, or begins with `./' or
`../', Info looks for FILENAME only in the directory of the
specified FILENAME, and adds the directory of FILENAME to the
value of `INFOPATH'. In contrast, if FILENAME is in the form of a
relative file name, but without the `./' or `../' prefix, Info
will only look for it in the directories specified in `INFOPATH'.
In other words, Info does _not_ treat file names which lack `./'
and `../' prefix as relative to the current directory
> I would classify 1) and 3) as bugs.
No, it's an intended feature.
- info -f does not ignore ./, Bruno Haible, 2005/03/07
- Re: info -f does not ignore ./, Karl Berry, 2005/03/07
- Re: info -f does not ignore ./,
Eli Zaretskii <=
- Re: info -f does not ignore ./, Bruno Haible, 2005/03/07
- Re: info -f does not ignore ./, Karl Berry, 2005/03/07
- Re: info -f does not ignore ./, Bruno Haible, 2005/03/08
- Re: info -f does not ignore ./, Karl Berry, 2005/03/08
- Re: info -f does not ignore ./, Bruno Haible, 2005/03/08
- Re: info -f does not ignore ./, Eli Zaretskii, 2005/03/08
- Re: info -f does not ignore ./, Karl Berry, 2005/03/08
- the "info" command, Stepan Kasal, 2005/03/09
- Re: the "info" command, Eli Zaretskii, 2005/03/09
- Re: the "info" command, Karl Berry, 2005/03/10