If you are just trying to search the path, you can use:
SearchPath(fn)
Which will search for a file along the PATH environment variable.
Otherwise, you'll have to do something like Knud suggested, e.g., pipe
the output into a buffer.
The new Capture() command might help also.
--
On Thu, Feb 5, 2026 at 1:33 PM Jose Adriano Baltieri <
jaba...@gmail.com> wrote:
>
> That's pretty bad, indeed...
>
> Because my PATH here is also very long ...
>
> And the way I planned the macro is to test across all possible PATHs ... Mostly for include (header) files etc this is very necessary.
>
> Any solution ? Transform the PATH tokens into an Array ? Or dump it into a hidden (and silent) buffer ?
>
>
>
> On Thu, Feb 5, 2026 at 3:25 PM 'knud van eeden' via SemWare TSE Pro text editor <
sem...@googlegroups.com> wrote:
>>
>> Hello,
>>
>> TSE 4.50.19
>>
>> TSE: GetEnvStr( "PATH" ) gives empty string if path is more than 255 characters long
>> (so starting from length and included of 256 characters you will get an empty string).
>>
>> So PATH length smaller or equal to 255 works but PATH length greater than 255 gives an empty string.
>>
>> Here the PATH is about 3000 characters long.
>>
>> Expected maybe some error or warning message instead if greater than e.g. 255 characters, if possible.
>>
>> PROC Main()
>> Warn( GetEnvStr("PATH") )
>> END
>>
>>
>>
>>
>>
>>
> To view this discussion visit
https://groups.google.com/d/msgid/semware/CAKBEyX_wTBHdg_sFDPq1i6A%2B_%3DKzy8HM8tksgyjX1bLbQBA3-w%40mail.gmail.com.