View Issue Details

IDProjectCategoryView StatusLast Update
0035945FPC-public2019-09-17 12:39
ReporterZamrony P. JuharaAssigned ToMichael Van Canneyt 
PrioritynormalSeverityfeatureReproducibilityalways
Status resolvedResolutionfixed 
Product Version3.0.4Product Build 
Target VersionFixed in Version3.3.1 
Summary0035945: instantfpc does not support reading source from STDIN
Descriptioninstantfpc always expects Pascal script from file. It would be nice if it supports reading source from STDIN so it can be piped with other shell script.

This is useful to be able to execute small temporary Pascal code without actually saving script to file first or to be able to generate pascal script on-the-fly and execute it without need to save it to file.
TagsNo tags attached.
Fixed in Revision43026
FPCOldBugId
FPCTarget3.2.0
Attached Files

Activities

Jonas Maebe

2019-08-10 10:12

manager   ~0117620

Instantfpc just calls the compiler, and the compiler does not support source code from stdin, so in the best case instantfpc would create a temporary file itself.

Michael Van Canneyt

2019-09-17 12:39

administrator   ~0118098

I added a -- option. When specified, the program is read from standard input.

Note that the program then cannot read from standard input, as EOF will be true.

Issue History

Date Modified Username Field Change
2019-08-10 08:38 Zamrony P. Juhara New Issue
2019-08-10 10:12 Jonas Maebe Note Added: 0117620
2019-09-14 11:43 Marco van de Voort Severity minor => feature
2019-09-14 11:43 Marco van de Voort FPCTarget => -
2019-09-17 12:39 Michael Van Canneyt Assigned To => Michael Van Canneyt
2019-09-17 12:39 Michael Van Canneyt Status new => resolved
2019-09-17 12:39 Michael Van Canneyt Resolution open => fixed
2019-09-17 12:39 Michael Van Canneyt Fixed in Version => 3.3.1
2019-09-17 12:39 Michael Van Canneyt Fixed in Revision => 43026
2019-09-17 12:39 Michael Van Canneyt FPCTarget - => 3.2.0
2019-09-17 12:39 Michael Van Canneyt Note Added: 0118098