Mantis - texinfo
Viewing Issue Advanced Details
3613 regular use block always 2009-04-03 13:14 2010-03-15 12:09
pfelecan  
dam  
normal  
closed  
fixed  
none    
none  
0003613: texi2dvi doesn't work with /bin/sh
The texi2dvi script uses as its default command interpreter /bin/sh

A simple invocation on the attached texi source gives:

texi2dvi t.texi
/opt/csw/bin/texi2dvi: local: not found
/opt/csw/bin/texi2dvi: BSTINPUTS: not found

Using explicitely the Bash command interpreter works:

bash texi2dvi t.texi
This is pdfeTeXk, Version 3.141592-1.21a-2.2 (Web2C 7.5.4)
 file:line:error style messages enabled.
entering extended mode
(./t.texi (/opt/csw/share/texmf-dist/tex/texinfo/texinfo.tex
Loading texinfo [version 2005-01-30.17]: Basics, pdf, fonts, page headings,
tables, conditionals, indexing, sectioning, toc, environments, defuns, macros,
cross references, insertions,
(/opt/csw/share/texmf-dist/tex/generic/epsf/epsf.tex) localization,
and turning on texinfo input format.) (./t.aux) [-1] )
Output written on t.dvi (1 page, 228 bytes).
Transcript written on t.log.

This is probably a "linuxism" as:

/bin/sh --version
GNU bash, version 3.2.48(1)-release (i486-pc-linux-gnu)
Copyright (C) 2007 Free Software Foundation, Inc.

My suggestion is to patch all the shell scripts in your package and make it depend on CSWbash

See the enclosed test case
? file icon t.texi [^] (741 bytes) 2009-04-03 13:14
Issue History
2009-04-03 13:14 pfelecan New Issue
2009-04-03 13:14 pfelecan File Added: t.texi
2009-04-09 15:01 dam Status new => assigned
2009-04-09 15:01 dam Assigned To => dam
2009-04-09 16:10 dam Note Added: 0005937
2009-04-09 16:10 dam Status assigned => resolved
2009-04-09 16:10 dam Resolution open => fixed
2009-04-09 23:04 dam Note Added: 0005943
2009-04-09 23:04 dam Status resolved => closed
2010-02-18 15:19 dam Issue Monitored: dam
2010-02-18 15:22 dam Issue End Monitor: dam
2010-02-18 15:23 dam Note Added: 0007474
2010-02-18 15:23 dam Note Edited: 0007474
2010-02-18 15:24 dam Status closed => confirmed
2010-02-18 18:58 pfelecan Note Added: 0007475
2010-03-15 12:09 dam Note Added: 0007649
2010-03-15 12:09 dam Status confirmed => closed

Notes
(0005937)
dam   
2009-04-09 16:10   
Fixed in 4.13,REV=2009.04.09_rev=a, released to newpkgs/
(0005943)
dam   
2009-04-09 23:04   
Released to current/
(0007474)
dam   
2010-02-18 15:23   
[Rupert Thurner]
As standard solaris has bash installed, is it really necessary, that texinfo depends on cswbash?

It could depend on SUNWbash, but I don't know how common the installation of that one is. It should work, though.

(0007475)
pfelecan   
2010-02-18 18:58   
IMHO we should depend on our stuff at least for coherency reasons but also for freshness.
(0007649)
dam   
2010-03-15 12:09   
No immediate change neeed, closing.