| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
|
Review requested:
|
Sorry, something went wrong.
There was a problem hiding this comment.
This is the only change that should be made. I've seen this and known about it.
Sorry, something went wrong.
There was a problem hiding this comment.
in this example, the command no longer stands out with this change, and I find it less readable. why don't we want syntax highlighting on command line commands?
Sorry, something went wrong.
That's actually untrue. We do want bash syntax for all non-console command lines. |
Sorry, something went wrong.
|
Here's the reasoning: each single command line isn't shell-agnostic, which is what console was being used for in the past. There is no such thing as a shell-agnostic command line (unless it starts w/ node [or others and doesn't use &&, |, et al. after it], then it's up to that command's command-line argument parser to do the work), so we've chosen to go w/ Bash due to its POSIXness. I personally am not a Bash user (for my daily routine), but keeping the docs in Bash is perfectly fine. Anything else would be a mistake IMO. |
Sorry, something went wrong.
My thinking was:
But really those are rationales probably, and I think mostly I've just seen too much misleading bash highlighting when the command prompt and output is included. So happy to revise this to just be the one uncontroversial instance. PTAL. |
Sorry, something went wrong.
It's impossible to use git on Windows w/o first installing Git Bash. Any dev using Windows would know this. I think we should think about the target audience here. |
Sorry, something went wrong.
|
Well, let me correct myself, because that's not entirely true. There are other ways to do use git on Windows, but changing this to anything other than bash is more of a philosophical discussion and is way off-topic. lol |
Sorry, something went wrong.
I certainly agree that the only logical choices (as far as I can tell) are bash or text and I'm happy to leave it as bash. My preference for text is very mild. (I don't think command lines need syntax highlighting, usually. Maybe when they get complex, but that generally should be avoided in documentation. There are other reasonable perspectives on this, though, and I'm happy to just go with bash.) |
Sorry, something went wrong.
|
would sh accomplish the same thing? that could be a more agnostic choice, i think. |
Sorry, something went wrong.
There is a point to choosing bash, which is stated above.
@zackschuster, the question I would have to ask is what does sh mean to you? |
Sorry, something went wrong.
@DerekNonGeneric sh means the POSIX interface, and could be bash, zsh, csh or even just plain old sh. the argument is that representing an interface makes it a "more agnostic" reference than any particular implementation. |
Sorry, something went wrong.
|
(this assumes sh and bash are otherwise equal wrt syntax highlighting, etc. of course 😄) |
Sorry, something went wrong.
|
@zackschuster, everything here is in Bash, what can I do? lol |
Sorry, something went wrong.
|
i can open a PR myself 😄 |
Sorry, something went wrong.
Would you? |
Sorry, something went wrong.
It may be semantically more agnostic, but under the hood, I believe it is identical to bash. So the rendering will be the same. (I'd still be in favor of such a change for semantic reasons.) |
Sorry, something went wrong.
|
This very small change needs reviews. Other than that, it is ready to land. |
Sorry, something went wrong.
PR-URL: #34837 Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Richard Lau <riclau@uk.ibm.com>
PR-URL: #34837 Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Richard Lau <riclau@uk.ibm.com>
PR-URL: #34837 Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Richard Lau <riclau@uk.ibm.com>
PR-URL: #34837 Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Richard Lau <riclau@uk.ibm.com>
| Back | FazBrowse Home | New Git URL |
We don't want bash syntax highlighting for command-line examples, so
switch to text or, where appropriate, console.
Checklist