Bug#570376: texdoc barfs if BROWSER has multiple colon-separated commands

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

Bug#570376: texdoc barfs if BROWSER has multiple colon-separated commands

Julian Gilbey-2
Package: texlive-base
Version: 2009-7
Severity: normal

I try running the command "texdoc eqnarray" and I get the error
message:
sh: links:lynx: not found

This is because my BROWSER environment variable contains "links:lynx",
as allowed in the specification of the BROWSER variable.

So texdoc should parse this variable (and perhaps others), using the
first one available.

   Julian

######################################
 List of ls-R files

-rw------- 1 jdg jdg 12877 Nov 23 18:06 /home/jdg/texmf/ls-R
-rw-r--r-- 1 root root 1490 Feb 18 11:11 /var/lib/texmf/ls-R
-rw-r--r-- 1 root staff 7857 Jan 21 13:33 /usr/local/share/texmf/ls-R
lrwxrwxrwx 1 root root 29 Jan 25 07:41 /usr/share/texmf/ls-R -> /var/lib/texmf/ls-R-TEXMFMAIN
lrwxrwxrwx 1 root root 27 Jan 25 07:41 /usr/share/texmf-texlive/ls-R -> /var/lib/texmf/ls-R-TEXLIVE
lrwxrwxrwx 1 root root 27 Jan 25 07:41 /usr/share/texmf-texlive/ls-R -> /var/lib/texmf/ls-R-TEXLIVE
######################################
 Config files
lrwxrwxrwx 1 root root 20 Jan 25 07:41 /usr/share/texmf/web2c/texmf.cnf -> /etc/texmf/texmf.cnf
-rw-r--r-- 1 root root 8588 Jan 25 21:34 /var/lib/texmf/web2c/fmtutil.cnf
-rw-r--r-- 1 root root 16344 Jan 25 21:34 /var/lib/texmf/web2c/updmap.cfg
-rw-r--r-- 1 root root 5083 Jan 25 21:34 /var/lib/texmf/tex/generic/config/language.dat
######################################
 Files in /etc/texmf/web2c/
total 0
######################################
 md5sums of texmf.d
3875bf0f4a53a29b7f247399dc9833e2  /etc/texmf/texmf.d/05TeXMF.cnf
6e82a3d4c00ae7e4f86aa8dcf9438cf3  /etc/texmf/texmf.d/15Plain.cnf
c60a084820a0b73e3bfbf2e90bda437c  /etc/texmf/texmf.d/45TeXinputs.cnf
ea33127256c6a9f37145ae5b16fdb80c  /etc/texmf/texmf.d/55Fonts.cnf
afccf1d3f87057411166a77c58e00bd1  /etc/texmf/texmf.d/65BibTeX.cnf
9da7c1c7b1eaf06f941af91f48a23068  /etc/texmf/texmf.d/75DviPS.cnf
37329819f1109e8a457e64b8b58fecdb  /etc/texmf/texmf.d/85Misc.cnf
a8952d594677235951d447665ec46e9c  /etc/texmf/texmf.d/90TeXDoc.cnf
bab3b7e578107f999fa1b0768994f6f8  /etc/texmf/texmf.d/95NonPath.cnf
1df66bc319cec731e202eaf39f5d85e1  /etc/texmf/texmf.d/96JadeTeX.cnf

-- System Information:
Debian Release: squeeze/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'stable')
Architecture: i386 (i686)

Kernel: Linux 2.6.32-trunk-686 (SMP w/1 CPU core)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8) (ignored: LC_ALL set to en_GB.UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages texlive-base depends on:
ii  dpkg                      1.15.5.6       Debian package management system
ii  install-info              4.13a.dfsg.1-5 Manage installed documentation in
ii  luatex                    0.50.0-1       next generation TeX engine
ii  mime-support              3.48-1         MIME files 'mime.types' & 'mailcap
ii  tex-common                2.06           common infrastructure for building
ii  texlive-binaries          2009-5         Binaries for TeX Live
ii  texlive-common            2009-7         TeX Live: Base component
ii  texlive-doc-base          2009-2         TeX Live: TeX Live documentation

Versions of packages texlive-base recommends:
ii  lmodern                       2.004.1-3  scalable PostScript and OpenType f

Versions of packages texlive-base suggests:
ii  acroread [pdf-viewer]    9.3-0.0         Adobe Acrobat Reader: Portable Doc
ii  evince [postscript-viewe 2.28.2-1        Document (postscript, pdf) viewer
ii  ghostscript [postscript- 8.70~dfsg-2.1   The GPL Ghostscript PostScript/PDF
ii  gv [postscript-viewer]   1:3.6.8-1       PostScript and PDF viewer for X
ii  perl-tk                  1:804.028-6     Perl module providing the Tk graph
ii  xpdf-reader [pdf-viewer] 3.02-1.4+lenny1 Portable Document Format (PDF) sui

Versions of packages tex-common depends on:
ii  debconf [debconf-2.0]         1.5.28     Debian configuration management sy
ii  dpkg                          1.15.5.6   Debian package management system
ii  ucf                           3.0025     Update Configuration File: preserv

Versions of packages texlive-base is related to:
pn  tetex-base                    <none>     (no description available)
pn  tetex-bin                     <none>     (no description available)
pn  tetex-extra                   <none>     (no description available)
ii  tex-common                    2.06       common infrastructure for building

-- debconf information:
  tex-common/check_texmf_wrong:
  tex-common/check_texmf_missing:
  tex-common/singleuser: false



--
To UNSUBSCRIBE, email to [hidden email]
with a subject of "unsubscribe". Trouble? Contact [hidden email]

Reply | Threaded
Open this post in threaded view
|

Bug#570376: texdoc barfs if BROWSER has multiple colon-separated commands

Hilmar Preuße
Control: found 570376 2019.20190710-1

Am 18.02.2010 um 13:44 teilte Julian Gilbey mit:

Hi Julian,

I'm going through some old bugs.

> I try running the command "texdoc eqnarray" and I get the error
> message:
> sh: links:lynx: not found
>
> This is because my BROWSER environment variable contains "links:lynx",
> as allowed in the specification of the BROWSER variable.
>
> So texdoc should parse this variable (and perhaps others), using the
> first one available.
>
I can still reproduce the issue and I have some comments. I used the
documentation progress20030701, which is in texlive-latex-extra-doc.

1. What kind of specification are you referring to? Is this a Debian
specification, if not where can I find it?
2. In addition to variable browser you can set the var BROWSER_texdoc,
which specifies just one browser program. This way you can make texdoc
work w/ changing the value of BROWSER.

Hilmar
--
sigfault
#206401 http://counter.li.org


signature.asc (849 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Bug#570376: texdoc barfs if BROWSER has multiple colon-separated commands

Julian Gilbey-2
On Tue, Jul 30, 2019 at 10:21:22PM +0200, Hilmar Preuße wrote:
> Hi Julian,
>
> I'm going through some old bugs.

Hi Hilmar,

Thanks for this!

> > I try running the command "texdoc eqnarray" and I get the error
> > message:
> > sh: links:lynx: not found
> >
> > This is because my BROWSER environment variable contains "links:lynx",
> > as allowed in the specification of the BROWSER variable.
> >
> > So texdoc should parse this variable (and perhaps others), using the
> > first one available.
> >
> I can still reproduce the issue and I have some comments. I used the
> documentation progress20030701, which is in texlive-latex-extra-doc.
>
> 1. What kind of specification are you referring to? Is this a Debian
> specification, if not where can I find it?

Ooh, that's a good question.

It seems that it was a project started by Eric Raymond, described
here: http://www.catb.org/~esr/BROWSER/ 

man(1) has a description of BROWSER matching this, and bts(1) follows
the same convention, as does the python webbrowser module,
apparently.

However, sensible-browser does not respect this, and I can't easily
find any other mentions of it.

Ho hum...  So it looks like it never really caught on.

> 2. In addition to variable browser you can set the var BROWSER_texdoc,
> which specifies just one browser program. This way you can make texdoc
> work w/ changing the value of BROWSER.

Yes, though that is a hack ;-)

I think the solution is just to ensure that BROWSER only has one
executable listed!

Best wishes,

   Julian

Reply | Threaded
Open this post in threaded view
|

Bug#570376: texdoc barfs if BROWSER has multiple colon-separated commands

Hilmar Preuße
Control: forwarded 570376 https://github.com/TeX-Live/texdoc/issues/48

Am 30.07.2019 um 23:41 teilte Julian Gilbey mit:

Hi Julian,

>> 2. In addition to variable browser you can set the var BROWSER_texdoc,
>> which specifies just one browser program. This way you can make texdoc
>> work w/ changing the value of BROWSER.
>
> Yes, though that is a hack ;-)
>
> I think the solution is just to ensure that BROWSER only has one
> executable listed!
>
I forwarded to upstream for now. texdoc is currently actively maintained
so there is some hope that your issue will be handled.

Hilmar
--
sigfault
#206401 http://counter.li.org


signature.asc (849 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Bug#570376: texdoc barfs if BROWSER has multiple colon-separated commands

Hilmar Preuße
In reply to this post by Julian Gilbey-2
Control: tags -1 + pending

Am 18.02.2010 um 13:44 teilte Julian Gilbey mit:

Hi,

> I try running the command "texdoc eqnarray" and I get the error
> message:
> sh: links:lynx: not found
>
> This is because my BROWSER environment variable contains "links:lynx",
> as allowed in the specification of the BROWSER variable.
>
> So texdoc should parse this variable (and perhaps others), using the
> first one available.
>
According to upstream this has been solved in
https://github.com/TeX-Live/texdoc/commit/326a21b7eb086610bc4e1417128d76a4baa72176

I tag that bug as pending, will be in one of the next uploads.

H.
--
sigfault
#206401 http://counter.li.org


signature.asc (849 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Bug#570376: texdoc barfs if BROWSER has multiple colon-separated commands

Hilmar Preuße
In reply to this post by Julian Gilbey-2
Am 18.02.2010 um 13:44 teilte Julian Gilbey mit:

Hi,

> I try running the command "texdoc eqnarray" and I get the error
> message:
> sh: links:lynx: not found
>
> This is because my BROWSER environment variable contains "links:lynx",
> as allowed in the specification of the BROWSER variable.
>
> So texdoc should parse this variable (and perhaps others), using the
> first one available.
>
Somehow changed on TL 2020, but not solved.

hille@debian-amd64-sid:~$ export BROWSER="links:lynx"
hille@debian-amd64-sid:~$ texdoc progress20030701
sh: 1: links: not found
texdoc error: Failed to execute: links
"/usr/share/texlive/texmf-dist/doc/latex/progress/progress20030701.html"
hille@debian-amd64-sid:~$ which lynx
/usr/bin/lynx

Works when links is installed, but fails to do a fail over to the second
entry in list.

H.
--
sigfault
#206401 http://counter.li.org


signature.asc (849 bytes) Download Attachment