Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ConvertFrom-TextTable -Skip parameter #38

Open
3 tasks done
ThomasNieto opened this issue Jul 25, 2023 · 0 comments
Open
3 tasks done

ConvertFrom-TextTable -Skip parameter #38

ThomasNieto opened this issue Jul 25, 2023 · 0 comments
Milestone

Comments

@ThomasNieto
Copy link

Prerequisites

  • Write a descriptive title.
  • Make sure you are able to repro it on the latest version
  • Search the existing issues.

Steps to reproduce

There is some confusing behavior where Skip does not skip the number of lines but rather the number of non-empty lines.

if(string.IsNullOrEmpty(_line))
{
continue;
}
// add the line to the list if we've skipped enough lines
if (SkippedLines++ >= Skip)
{
Lines.Add(_line);
}

Expected behavior

Skip should match the number of input object lines.

Actual behavior

Skip only matches on non-blank lines creating a disconnect between input and what is being processed.

Error details

No response

Environment data

7.4

Version

0.5.0

Visuals

No response

@SteveL-MSFT SteveL-MSFT added this to the 1.0 Consider milestone Jul 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants