-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
"line" should be "item" #7133
Comments
Hey @iRon7, thanks for the feedback. I see your point here. Do you think in the context of the document as a whole it makes more sense here to keep it as line? "Line" is common terminology throughout and in my view makes it easer to keep straight in my head when thinking about blocks of text. What's your take on it? |
I think it makes sense to change it also for the Description but I am not sure whether this will also affect other documents.
In the above context, "the strings" and "one line" both refer to each current item in the pipeline (same definition as in Meaning, I would define this as:
So far I can determine, the words "line " in the description of the |
Thanks for pinging me, @iRon7. The per-item logic doesn't quite apply as such, and here's the summary from the answer that I posted on Stack Overflow:
For so-called in-band data types,
Out-of-band data types are individually formatted outside of the formatting system, by simply calling their .NET In short: data types that represent a single value are out-of-band, and in addition to
Therefore:
|
@mklement0 , Thank you for the explanation and the extra details but I am not sure whether this means that the current document should be sufficient for a developer to understand situation behind this (and whether this document-issue should be closed or not). |
@iRon7: I do agree that the topic should be improved, and I was hoping my comment could serve as the basis for that. @chasewilson, thanks for tackling this improvement; as for the specifics:
I would find that confusing - what is an item in this context? The gist of it is:
|
Also, given that the current behavior with respect to multiline input string is both obscure and unhelpful, I've created a proposal to split them into individual lines too - see PowerShell/PowerShell#14638 |
Thanks for the quick turnaround, but the merged PR added incorrect information - please see #7153 |
The word "
line
" is very confusing in this context:-Stream
And should probably be "
item
" as it doesn't split raw text (as inGet-Content -Raw
) into lines but instead it should mean that each item in a input stream (as in the defaultGet-Content
) is kept separated (whereOut-String
usually joins all the items to a single text string).See also StackOverflow question/answer: Select-String not working on piped object using Out-String
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
The text was updated successfully, but these errors were encountered: