Can PowerShell Core handle ps1 files with CRLF line endings in Linux environments?

Viewed 198

I have the following unanswered questions, and I am looking for documentation that explains the PowerShell core requirement for LF vs CRLF line ending in Linux environments.

1- Can PWSH Core handle files with CRLF?

2- When I run a ps1 file with an LF line ending, can it call another ps1 file with mixed CRLF line endings?

3- Is the PWSH line ending requirement documented and consistent across all Linux distributions?

I am asking the above questions since PowerShell is born in Windows environment and I expect it can somehow tolerate LF vs. CRLF discrepancies.

A link to online documentation would be a great help. I did search and surprisingly, I could not find any.

0 Answers
Related