Skip to content

Metadata file contains blank lines (Windows only) #121

@juneb

Description

@juneb

aws-encryption-sdk-cli: 1.0.2.7
Windows: 10.0.14393.1884
PowerShell: 5.0.14393.1884
Related to: #65

The metadata file that the encrypt and decrypt commands write has blank lines after each JSON string. As a result:

PS C:\ps-test> (cat $home\metadata.txt)[-1]
PS C:\ps-test> 
PS C:\ps-test> (cat $home\metadata.txt)[-1] -eq ''
True

Also, the count value is misleading:

PS C:\ps-test> (cat $home\metadata.txt).count
22
PS C:\ps-test> ((cat $home\metadata.txt) -match '^\S').count
11

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions