Skip to content

Powershell here-string exit #5

@L1ttl3J1m

Description

@L1ttl3J1m

Using indentation on the closing element of a here-string causes the element to be considered part of the here-string

$ThisHereString=@"
		Item
		item1
		item2
"@

Foreach ($line in $ThisHereString) { etc...

vs

$ThisHereString=@"
		Item
		item1
		item2
	        "@

Foreach ($line in $ThisHereString) { etc...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions