Once upon a time ago, Russ Whitaker wrote:
near the end of make LANGUAGES=pascal there is a number of "if" statemnets followed by the message
/bin/sh: [: ==: binary operator expected
Unless this has already been solved, can you give more information where this accurs (perhaps a log of the make run)?
p.s. think "Trim" should trim both spaces and tab chrs ( now only spaces) low priority wish list
What does the standard say about this? (`Trim' is a predefined function of the standard, so we have to care about the standard here.)
Technically, of course, it would be easy to do it. Alternatively (if the standard wants only spaces), we could also make a different routine for spaces and tabs...
Frank
On 9 May 99, at 16:02, Frank Heckenbach wrote:
p.s. think "Trim" should trim both spaces and tab chrs ( now only spaces) low priority wish list
What does the standard say about this? (`Trim' is a predefined function of the standard, so we have to care about the standard here.)
Section 6.7.6.7 (String functions) in ISO 10206 (Extended Pascal) says for "Trim":
...the function shall yield the value of substr(sv,1,p-1), where p is the least value in the closed interval 1..n such that each component of sv[p..n] is the char-type value space.
So "Trim" only trims spaces.
Alternatively (if the standard wants only spaces), we could also make a different routine for spaces and tabs...
A different function would be the proper implementation.
-- Dave Bryan