[fpc-devel] Might need some help with this one

Alexander Grotewohl alex at dcclost.com
Fri Nov 27 20:43:52 CET 2020


"break" is a windows built-in. explains the first attempt.

--
Alexander Grotewohl
https://dcclost.com
________________________________
From: fpc-devel <fpc-devel-bounces at lists.freepascal.org> on behalf of Tomas Hajny via fpc-devel <fpc-devel at lists.freepascal.org>
Sent: Friday, November 27, 2020 11:16:26 AM
To: FPC developers' list <fpc-devel at lists.freepascal.org>
Cc: Tomas Hajny <XHajT03 at hajny.biz>
Subject: Re: [fpc-devel] Might need some help with this one

On 2020-11-27 15:34, Bart via fpc-devel wrote:
> On Thu, Nov 26, 2020 at 11:10 PM Tomas Hajny via fpc-devel
> <fpc-devel at lists.freepascal.org> wrote:
>
>> Typing 'break.exe' in cmd.exe _does_ make a difference here (it
>> executes
>> as expected unlike when typing just 'break'). And obviously running
>> break.exe using some other 'shell' (e.g. your preferred OFM ;-) )
>> works
>> as well.
>
> Well, at my machine it did not.
> I also called it from a batchfile (as break.exe) to see if I could
> catch the errorlevel (I let it crash with a division by zero).
> The errorlevel is set, but absolutely no output to screen or pipe.

Understood. Haven't I already mentioned something about MS approach
towards compatibility here recently? :/

-------------------
D:\TEMP>cmd
Microsoft Windows [Version 10.0.18363.1082]
(c) 2019 Microsoft Corporation. Všechna práva vyhrazena.

D:\TEMP>break

D:\TEMP>break.exe
I am Break

D:\TEMP>.\break
I am Break

D:\TEMP>
===================

Tomas
_______________________________________________
fpc-devel maillist  -  fpc-devel at lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-devel/attachments/20201127/eccbe6ef/attachment.htm>


More information about the fpc-devel mailing list