Re: [Fink-users] Snow Leopard, TeXShop, tetex = trouble for me

2009-09-01 Thread Martin Costabel
Mark J. Reed wrote:
 On Mon, Aug 31, 2009 at 7:46 PM, Martin Costabelcosta...@wanadoo.fr wrote:
 Otherwise use printf or /bin/echo -n instead of echo -n. Or bash instead of
 sh.
 
 OK, now I'm confused.  On my Leopard box (10.5.8), /bin/sh is a link
 to bash  - hm, a separate copy, actually -  and behaves just like bash
 does in 'sh mode' on other platforms, including honoring -n in echo.

Read man bash about the startup procedure. Bash behaves differently 
when it is started under the name sh.

-- 
Martin


--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
Fink-users mailing list
Fink-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fink-users


Re: [Fink-users] Snow Leopard, TeXShop, tetex = trouble for me

2009-09-01 Thread Martin Costabel
Ben Abbott wrote:
 On Aug 31, 2009, at 9:02 PM, Mark J. Reed wrote:
 
 On Mon, Aug 31, 2009 at 7:46 PM, Martin  
 Costabelcosta...@wanadoo.fr wrote:
 Otherwise use printf or /bin/echo -n instead of echo -n. Or bash  
 instead of
 sh.
 OK, now I'm confused.  On my Leopard box (10.5.8), /bin/sh is a link
 to bash  - hm, a separate copy, actually -  and behaves just like bash
 does in 'sh mode' on other platforms, including honoring -n in echo.
 
 For me on 10.6, if I type ...
 
 $ sh
 sh-3.2$ echo $SHELL
 /bin/bash

Try `echo -n $SHELL` in sh and in bash...

-- 
Martin

--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
Fink-users mailing list
Fink-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fink-users


Re: [Fink-users] Snow Leopard, TeXShop, tetex = trouble for me

2009-09-01 Thread Mark J. Reed
On Tue, Sep 1, 2009 at 2:05 AM, Martin Costabelcosta...@wanadoo.fr wrote:
 Mark J. Reed wrote:
 OK, now I'm confused.  On my Leopard box (10.5.8), /bin/sh is a link
 to bash  - hm, a separate copy, actually -  and behaves just like bash
 does in 'sh mode' on other platforms, including honoring -n in echo.

 Read man bash about the startup procedure. Bash behaves differently when
 it is started under the name sh.

I know.  That's what I meant by bash in 'sh mode'.  Pasted from Terminal:

$ sh
sh-3.2$ echo -n Hello
Hellosh-3.2$ exit
$ sh --posix
sh-3.2$ echo -n Hello
Hellosh-3.2$

Are you sure you're not thinking of a developer prerelease of SL
rather than Leopard?




-- 
Mark J. Reed markjr...@gmail.com

--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
Fink-users mailing list
Fink-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fink-users


Re: [Fink-users] Snow Leopard, TeXShop, tetex = trouble for me

2009-09-01 Thread Ben Abbott

On Sep 1, 2009, at 5:15 AM, Mark J. Reed wrote:

 On Tue, Sep 1, 2009 at 2:05 AM, Martin Costabelcosta...@wanadoo.fr  
 wrote:
 Mark J. Reed wrote:
 OK, now I'm confused.  On my Leopard box (10.5.8), /bin/sh is a link
 to bash  - hm, a separate copy, actually -  and behaves just like  
 bash
 does in 'sh mode' on other platforms, including honoring -n in echo.

 Read man bash about the startup procedure. Bash behaves  
 differently when
 it is started under the name sh.

 I know.  That's what I meant by bash in 'sh mode'.  Pasted from  
 Terminal:

 $ sh
 sh-3.2$ echo -n Hello
 Hellosh-3.2$ exit
 $ sh --posix
 sh-3.2$ echo -n Hello
 Hellosh-3.2$

 Are you sure you're not thinking of a developer prerelease of SL
 rather than Leopard?]

I'm using Snow Leopard purchased from Apple.

ben-abbotts-macbook-pro:~ bpabbott$ sh
sh-3.2$ echo -n Hello
-n Hello
sh-3.2$ exit
exit
ben-abbotts-macbook-pro:~ bpabbott$ sh --posix
sh-3.2$ echo -n Hello
-n Hello
sh-3.2$ exit
exit
ben-abbotts-macbook-pro:~ bpabbott$ echo -n Hello
Helloben-abbotts-macbook-pro:~ bpabbott$

Ben


--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
Fink-users mailing list
Fink-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fink-users


Re: [Fink-users] Snow Leopard, TeXShop, tetex = trouble for me

2009-09-01 Thread Mark J. Reed
OK, that confirms that what Martin said is true of Snow Leopard, which
I don't think was in question.  But he said it had been true since
Leopard, and that's the part that I think is in error.  If it wasn't
changed until SL, that would also explain why the current problem
didn't show up until SL.

On Tue, Sep 1, 2009 at 7:35 AM, Ben Abbottbpabb...@mac.com wrote:

 On Sep 1, 2009, at 5:15 AM, Mark J. Reed wrote:

 On Tue, Sep 1, 2009 at 2:05 AM, Martin Costabelcosta...@wanadoo.fr
 wrote:

 Mark J. Reed wrote:

 OK, now I'm confused.  On my Leopard box (10.5.8), /bin/sh is a link
 to bash  - hm, a separate copy, actually -  and behaves just like bash
 does in 'sh mode' on other platforms, including honoring -n in echo.

 Read man bash about the startup procedure. Bash behaves differently
 when
 it is started under the name sh.

 I know.  That's what I meant by bash in 'sh mode'.  Pasted from
 Terminal:

 $ sh
 sh-3.2$ echo -n Hello
 Hellosh-3.2$ exit
 $ sh --posix
 sh-3.2$ echo -n Hello
 Hellosh-3.2$

 Are you sure you're not thinking of a developer prerelease of SL
 rather than Leopard?]

 I'm using Snow Leopard purchased from Apple.

 ben-abbotts-macbook-pro:~ bpabbott$ sh
 sh-3.2$ echo -n Hello
 -n Hello
 sh-3.2$ exit
 exit
 ben-abbotts-macbook-pro:~ bpabbott$ sh --posix
 sh-3.2$ echo -n Hello
 -n Hello
 sh-3.2$ exit
 exit
 ben-abbotts-macbook-pro:~ bpabbott$ echo -n Hello
 Helloben-abbotts-macbook-pro:~ bpabbott$

 Ben





-- 
Mark J. Reed markjr...@gmail.com

--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
Fink-users mailing list
Fink-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fink-users


Re: [Fink-users] Snow Leopard, TeXShop, tetex = trouble for me

2009-09-01 Thread Martin Costabel
Mark J. Reed wrote:
 OK, that confirms that what Martin said is true of Snow Leopard, which
 I don't think was in question.  But he said it had been true since
 Leopard, and that's the part that I think is in error.  If it wasn't
 changed until SL, that would also explain why the current problem
 didn't show up until SL.

No, this behavior has been the same since the beginning of Leopard. 
There has been a long campaign of correction of Fink packages, 
eliminating echo -n. Seeing who is its maintainer, I don't know why 
altpdftex has escaped until now.

[]
 $ sh
 sh-3.2$ echo -n Hello
 Hellosh-3.2$ exit
 $ sh --posix
 sh-3.2$ echo -n Hello
 Hellosh-3.2$

I don't know how you do this, but it's not what I get on Leopard. Are 
you sure you aren't running Tiger? Or do you set or unset the 
environment variable COMMAND_MODE in one opf your startup scripts?

In the shells I have looked at on Leopard, this environment variable is 
always set to unix2003. I am not sure where it is set, probably in the 
Finder, but everything inherits this, unless it is changed explicitly.

If you run altpdflatex with COMMAND_MODE=unix2003, you get the POSIX-sh 
behavior Ben has seen on SnowLeopard and I have described on Leopard. If 
you run it with COMMAND_MODE=legacy (and this is what TeXShop apparently 
does on Leopard), you get the behavior Mark is seeing in sh.

Try (on Leopard, I am not near my SL machine right now)

env COMMAND_MODE=unix2003 sh -c 'echo -n asdf'
env COMMAND_MODE=legacy sh -c 'echo -n asdf'

-- 
Martin

--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
Fink-users mailing list
Fink-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fink-users


Re: [Fink-users] Snow Leopard, TeXShop, tetex = trouble for me

2009-09-01 Thread Martin Costabel
Mark J. Reed wrote:
 OK, that confirms that what Martin said is true of Snow Leopard, which
 I don't think was in question.  But he said it had been true since
 Leopard, and that's the part that I think is in error.  If it wasn't
 changed until SL, that would also explain why the current problem
 didn't show up until SL.

Here is a link (almost 3 years old) from Apple, explaining these issues:
http://developer.apple.com/mac/library/releasenotes/Darwin/RN-Unix03Conformance/index.html
and here is a discussion about TeXShop/simpdftex in this connection
http://www.tug.org/pipermail/macostex-archives/2007-November/032703.html

-- 
Martin

--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
Fink-users mailing list
Fink-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fink-users


Re: [Fink-users] Snow Leopard, TeXShop, tetex = trouble for me

2009-09-01 Thread Mark J. Reed
On Tue, Sep 1, 2009 at 10:29 AM, Martin Costabelcosta...@wanadoo.fr wrote:
 I don't know how you do this, but it's not what I get on Leopard. Are you
 sure you aren't running Tiger?

Yes, it's Leopard.  Specifically, as I said in my earlier message, 10.5.8.

 Or do you set or unset the environment variable COMMAND_MODE in one opf your 
 startup scripts?

Ah, now we're on to something.  I do have COMMAND_MODE set to legacy,
so that explains that.  Thanks.

I was surprised to discover this setting in my environment, since it's
not set in any of the bash startup files, either system or mine.  It
turns out that the culprit is iTerm.  If I ssh in, COMMAND_MODE is not
set at all; if I fire up Terminal.app, it's set to unix2003.  But if I
run iTerm, I inherit COMMAND_MODE=legacy.  Odd feature, that.


-- 
Mark J. Reed markjr...@gmail.com

--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
Fink-users mailing list
Fink-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fink-users


Re: [Fink-users] Snow Leopard, TeXShop, tetex = trouble for me

2009-09-01 Thread Ben Abbott
On Tuesday, September 01, 2009, at 10:29AM, Martin Costabel 
costa...@wanadoo.fr wrote:
Mark J. Reed wrote:
 OK, that confirms that what Martin said is true of Snow Leopard, which
 I don't think was in question.  But he said it had been true since
 Leopard, and that's the part that I think is in error.  If it wasn't
 changed until SL, that would also explain why the current problem
 didn't show up until SL.

No, this behavior has been the same since the beginning of Leopard. 
There has been a long campaign of correction of Fink packages, 
eliminating echo -n. Seeing who is its maintainer, I don't know why 
altpdftex has escaped until now.

[]
 $ sh
 sh-3.2$ echo -n Hello
 Hellosh-3.2$ exit
 $ sh --posix
 sh-3.2$ echo -n Hello
 Hellosh-3.2$

I don't know how you do this, but it's not what I get on Leopard. Are 
you sure you aren't running Tiger? Or do you set or unset the 
environment variable COMMAND_MODE in one opf your startup scripts?
In the shells I have looked at on Leopard, this environment variable is 
always set to unix2003. I am not sure where it is set, probably in the 
Finder, but everything inherits this, unless it is changed explicitly.

If you run altpdflatex with COMMAND_MODE=unix2003, you get the POSIX-sh 
behavior Ben has seen on SnowLeopard and I have described on Leopard. If 
you run it with COMMAND_MODE=legacy (and this is what TeXShop apparently 
does on Leopard), you get the behavior Mark is seeing in sh.

Try (on Leopard, I am not near my SL machine right now)

env COMMAND_MODE=unix2003 sh -c 'echo -n asdf'
env COMMAND_MODE=legacy sh -c 'echo -n asdf'


On Snow Leopard ...

sh-3.2$ env COMMAND_MODE=unix2003 sh -c 'echo -n asdf'
-n asdf
sh-3.2$ env COMMAND_MODE=legacy sh -c 'echo -n asdf'
asdfsh-3.2$ 

Ben

--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
Fink-users mailing list
Fink-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fink-users


Re: [Fink-users] Snow Leopard, TeXShop, tetex = trouble for me

2009-09-01 Thread Martin Costabel
Ben Abbott wrote:
[]
 On Snow Leopard ...
 
 sh-3.2$ env COMMAND_MODE=unix2003 sh -c 'echo -n asdf'
 -n asdf
 sh-3.2$ env COMMAND_MODE=legacy sh -c 'echo -n asdf'
 asdfsh-3.2$ 

OK, so this is still the same as on Leopard. What has changed is the 
behavior of TeXShop, it seems to me. It doesn't supply the 
COMMAND_MODE=legacy any more. Which version of TeXShop are you running?

-- 
Martin



--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
Fink-users mailing list
Fink-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fink-users


Re: [Fink-users] Snow Leopard, TeXShop, tetex = trouble for me

2009-09-01 Thread Ben Abbott
On Sep 1, 2009, at 3:07 PM, Martin Costabel costa...@wanadoo.fr wrote:

 Ben Abbott wrote:
 []
 On Snow Leopard ...
 sh-3.2$ env COMMAND_MODE=unix2003 sh -c 'echo -n asdf'
 -n asdf
 sh-3.2$ env COMMAND_MODE=legacy sh -c 'echo -n asdf'
 asdfsh-3.2$

 OK, so this is still the same as on Leopard. What has changed is the  
 behavior of TeXShop, it seems to me. It doesn't supply the  
 COMMAND_MODE=legacy any more. Which version of TeXShop are you  
 running?


I'm running 2.26 ... Installed via Fink.

Ben

--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
Fink-users mailing list
Fink-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fink-users


[Fink-users] Snow Leopard, TeXShop, tetex = trouble for me

2009-08-31 Thread Ben Abbott
I followed the instructions to switch to snow leopard. I've deleted  
all Fink's .la files and have rebuilt the packages when the missing  
files were needed when running an update-all. All went rather well.

Now I'm having trouble with tetex.

With the simple latex document ...

 \documentclass[12pt,letterpaper]{article}
 \begin{document}
 hello
 \end{document}

My TeXShop preference have ...

Default Command: Latex
Default Script: Tex + DVI
Tex: altpdflatex
Latex: altpdflatex

When I typeset, I get ...

### This is /sw/bin/altpdflatex, Version $Revision: 2.14 $
### /sw/bin/latex test.tex
This is pdfeTeX, Version 3.141592-1.21a-2.2 (Web2C 7.5.4)
entering extended mode
(./test.tex
LaTeX2e 2003/12/01
Babel v3.8d and hyphenation patterns for american, french, german,  
ngerman, b
ahasa, basque, bulgarian, catalan, croatian, czech, danish, dutch,  
esperanto, e
stonian, finnish, greek, icelandic, irish, italian, latin, magyar,  
norsk, polis
h, portuges, romanian, russian, serbian, slovak, slovene, spanish,  
swedish, tur
kish, ukrainian, nohyphenation, loaded.
(/sw/share/texmf-dist/tex/latex/base/article.cls
Document Class: article 2004/02/16 v1.4f Standard LaTeX document class
(/sw/share/texmf-dist/tex/latex/base/size12.clo)) (./test.aux) [1] (./ 
test.aux)
  )
Output written on test.dvi (1 page, 220 bytes).
Transcript written on test.log.
### /sw/bin/dvips -R -Poutline  -o /tmp/altpdflatex.53342/-n test.ps - 
n test.dvi
/sw/bin/dvips: ! Bad number of pages option (-n).
### FAILED to generate /tmp/altpdflatex.53342/-n test.ps ()

It doesn't appear my switch to Snow Leopard changed either dvips or  
altpdflatex.

$ ls -l /sw/bin/dvips
-rwxr-xr-x 1 root admin 230476 2008-07-18 01:14 /sw/bin/dvips

$ ls -l /sw/bin/altpdflatex
lrwxr-xr-x 1 root admin 9 2009-07-10 11:16 /sw/bin/altpdflatex -  
altpdftex

Meanwhile the simple sequence below works

 latex test.tex
 dvips -f test.dvi  test.ps
 ps2pdf13 test.ps  test.pdf

Any ideas as to what happened to break TeXShop?

Ben




--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
Fink-users mailing list
Fink-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fink-users


Re: [Fink-users] Snow Leopard, TeXShop, tetex = trouble for me

2009-08-31 Thread Martin Costabel
Ben Abbott wrote:
 I followed the instructions to switch to snow leopard. I've deleted  
[]
 Default Command: Latex
 Default Script: Tex + DVI
 Tex: altpdflatex
 Latex: altpdflatex

Contemporary versions of tex use simpdftex instead of altpdftex, whose 
development stopped ca 2002.

 When I typeset, I get ...
 
 ### This is /sw/bin/altpdflatex, Version $Revision: 2.14 $
 ### /sw/bin/latex test.tex
 This is pdfeTeX, Version 3.141592-1.21a-2.2 (Web2C 7.5.4)
 entering extended mode
[]
 ### /sw/bin/dvips -R -Poutline  -o /tmp/altpdflatex.53342/-n test.ps - 
 n test.dvi
 /sw/bin/dvips: ! Bad number of pages option (-n).
[]
 Any ideas as to what happened to break TeXShop?

This should have been broken on Leopard already. The problem is that 
altpdftex uses echo -n inside a sh script, and Apple, trying to be 
more POSIX conforming than POSIX requires, removed the -n flag from 
the echo command that is executed by /bin/sh.

A workaround is to edit the /sw/bin/altpdftex script by hand and to 
replace the first line

#!/bin/sh

by

#!/bin/bash

or, as simpdftex did, replace both occurrences of echo -n by 
/bin/echo -n.

-- 
Martin


--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
Fink-users mailing list
Fink-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fink-users


Re: [Fink-users] Snow Leopard, TeXShop, tetex = trouble for me

2009-08-31 Thread Mark J. Reed
More POSIX conforming than POSIX requires would seem to be an
oxymoron, if not a paradox.  And POSIX explicitly allows echo -n.

Does the builtin echo in sh have any way to suppress a newline?  Maybe
the venerable \c?

On 8/31/09, Martin Costabel costa...@wanadoo.fr wrote:
 Ben Abbott wrote:
 I followed the instructions to switch to snow leopard. I've deleted
 []
 Default Command: Latex
 Default Script: Tex + DVI
 Tex: altpdflatex
 Latex: altpdflatex

 Contemporary versions of tex use simpdftex instead of altpdftex, whose
 development stopped ca 2002.

 When I typeset, I get ...

 ### This is /sw/bin/altpdflatex, Version $Revision: 2.14 $
 ### /sw/bin/latex test.tex
 This is pdfeTeX, Version 3.141592-1.21a-2.2 (Web2C 7.5.4)
 entering extended mode
 []
 ### /sw/bin/dvips -R -Poutline  -o /tmp/altpdflatex.53342/-n test.ps -
 n test.dvi
 /sw/bin/dvips: ! Bad number of pages option (-n).
 []
 Any ideas as to what happened to break TeXShop?

 This should have been broken on Leopard already. The problem is that
 altpdftex uses echo -n inside a sh script, and Apple, trying to be
 more POSIX conforming than POSIX requires, removed the -n flag from
 the echo command that is executed by /bin/sh.

 A workaround is to edit the /sw/bin/altpdftex script by hand and to
 replace the first line

 #!/bin/sh

 by

 #!/bin/bash

 or, as simpdftex did, replace both occurrences of echo -n by
 /bin/echo -n.

 --
 Martin


 --
 Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
 trial. Simplify your report design, integration and deployment - and focus
 on
 what you do best, core application coding. Discover what's new with
 Crystal Reports now.  http://p.sf.net/sfu/bobj-july
 ___
 Fink-users mailing list
 Fink-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/fink-users


-- 
Sent from my mobile device

Mark J. Reed markjr...@gmail.com

--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
Fink-users mailing list
Fink-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fink-users


Re: [Fink-users] Snow Leopard, TeXShop, tetex = trouble for me

2009-08-31 Thread Ben Abbott

On 8/31/09, Martin Costabel costa...@wanadoo.fr wrote:
 Ben Abbott wrote:
 I followed the instructions to switch to snow leopard. I've deleted
 []
 Default Command: Latex
 Default Script: Tex + DVI
 Tex: altpdflatex
 Latex: altpdflatex

 Contemporary versions of tex use simpdftex instead of altpdftex, whose
 development stopped ca 2002.

 When I typeset, I get ...

 ### This is /sw/bin/altpdflatex, Version $Revision: 2.14 $
 ### /sw/bin/latex test.tex
 This is pdfeTeX, Version 3.141592-1.21a-2.2 (Web2C 7.5.4)
 entering extended mode
 []
 ### /sw/bin/dvips -R -Poutline  -o /tmp/altpdflatex.53342/-n  
 test.ps -
 n test.dvi
 /sw/bin/dvips: ! Bad number of pages option (-n).
 []
 Any ideas as to what happened to break TeXShop?

 This should have been broken on Leopard already. The problem is that
 altpdftex uses echo -n inside a sh script, and Apple, trying to be
 more POSIX conforming than POSIX requires, removed the -n flag from
 the echo command that is executed by /bin/sh.

 A workaround is to edit the /sw/bin/altpdftex script by hand and to
 replace the first line

 #!/bin/sh

 by

 #!/bin/bash

 or, as simpdftex did, replace both occurrences of echo -n by
 /bin/echo -n.

Ok! Its the shell that changed. I was using bash under 10.5 (which  
explains why altpdftex worked for it) and have modified the default  
for 10.6, but apparently the TeXShop installed via Fink on 10.6 still  
uses sh. When I install TeXShop from the web, it works as expected.

Thanks for the explanation. I'll modify the altpdf* scripts to use the  
bash shell.

Ben



--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
Fink-users mailing list
Fink-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fink-users


Re: [Fink-users] Snow Leopard, TeXShop, tetex = trouble for me

2009-08-31 Thread Martin Costabel
Mark J. Reed wrote:
 More POSIX conforming than POSIX requires would seem to be an
 oxymoron, if not a paradox.  And POSIX explicitly allows echo -n.

Yes, that's what I mean. Back in the early days of Leopard, when people 
complained about the missing -n in sh's echo, Apple said it is because 
of POSIX conformity.

 Does the builtin echo in sh have any way to suppress a newline?  Maybe
 the venerable \c?

Yes, \c works, although this is an extension of POSIX echo, just as -n.

Otherwise use printf or /bin/echo -n instead of echo -n. Or bash instead 
of sh.

-- 
Martin







--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
Fink-users mailing list
Fink-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fink-users


Re: [Fink-users] Snow Leopard, TeXShop, tetex = trouble for me

2009-08-31 Thread Ben Abbott
On Aug 31, 2009, at 7:46 PM, Martin Costabel wrote:

 Mark J. Reed wrote:
 More POSIX conforming than POSIX requires would seem to be an
 oxymoron, if not a paradox.  And POSIX explicitly allows echo -n.

 Yes, that's what I mean. Back in the early days of Leopard, when  
 people complained about the missing -n in sh's echo, Apple said it  
 is because of POSIX conformity.

 Does the builtin echo in sh have any way to suppress a newline?   
 Maybe
 the venerable \c?

 Yes, \c works, although this is an extension of POSIX echo, just  
 as -n.

 Otherwise use printf or /bin/echo -n instead of echo -n. Or bash  
 instead of sh.

 -- 
 Martin

Would it be appropriate to patch altpdf{la}tex to avoid this problem?

Ben

--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
Fink-users mailing list
Fink-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fink-users


Re: [Fink-users] Snow Leopard, TeXShop, tetex = trouble for me

2009-08-31 Thread Ben Abbott
On Aug 31, 2009, at 9:02 PM, Mark J. Reed wrote:

 On Mon, Aug 31, 2009 at 7:46 PM, Martin  
 Costabelcosta...@wanadoo.fr wrote:
 Otherwise use printf or /bin/echo -n instead of echo -n. Or bash  
 instead of
 sh.

 OK, now I'm confused.  On my Leopard box (10.5.8), /bin/sh is a link
 to bash  - hm, a separate copy, actually -  and behaves just like bash
 does in 'sh mode' on other platforms, including honoring -n in echo.

For me on 10.6, if I type ...

$ sh
sh-3.2$ echo $SHELL
/bin/bash

However, the shell initiated by TeXShop appears to be something else.

Bel

--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
Fink-users mailing list
Fink-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fink-users


Re: [Fink-users] Snow Leopard, TeXShop, tetex = trouble for me

2009-08-31 Thread Mark J. Reed
On Mon, Aug 31, 2009 at 7:46 PM, Martin Costabelcosta...@wanadoo.fr wrote:
 Otherwise use printf or /bin/echo -n instead of echo -n. Or bash instead of
 sh.

OK, now I'm confused.  On my Leopard box (10.5.8), /bin/sh is a link
to bash  - hm, a separate copy, actually -  and behaves just like bash
does in 'sh mode' on other platforms, including honoring -n in echo.


-- 
Mark J. Reed markjr...@gmail.com

--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
Fink-users mailing list
Fink-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fink-users