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

Issue in copy-pasting snippets in terminal having comments #44866

Open
erikh opened this issue Jan 24, 2024 · 11 comments
Open

Issue in copy-pasting snippets in terminal having comments #44866

erikh opened this issue Jan 24, 2024 · 11 comments
Labels
area/web-development Issues or PRs related to the kubernetes.io's infrastructure, design, or build processes kind/feature Categorizes issue or PR as related to a new feature. needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one. sig/docs Categorizes an issue or PR as relevant to SIG Docs.

Comments

@erikh
Copy link

erikh commented Jan 24, 2024

In the docs, the following segment is in a section of code:

# If the folder `/etc/apt/keyrings` does not exist, it should be created before the curl command, read the note below.
# sudo mkdir -p -m 755 /etc/apt/keyrings
curl -fsSL https://pkgs.k8s.io/core:/stable:/v1.29/deb/Release.key | sudo gpg --dearmor -o /etc/apt/keyrings/kubernetes-apt-keyring.gpg

If pasted in some shells (notably, zsh), where # is not a comment character at the beginning of the line, /etc/apt/keyrings is executed in a shell due to the backticks. It does nothing of course, but kind of sent my brain for a loop for a second.

Given that OS X shells these days are defaulted to zsh, seems like something worthy of concern to avoid in the future, as I could easily see others embedding actual commands in the comments which would get executed.

That said, thank you for maintaining such a wonderful resource, and have a good day.

@k8s-ci-robot k8s-ci-robot added the needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one. label Jan 24, 2024
@k8s-ci-robot
Copy link
Contributor

This issue is currently awaiting triage.

SIG Docs takes a lead on issue triage for this website, but any Kubernetes member can accept issues by applying the triage/accepted label.

The triage/accepted label can be added by org members by writing /triage accepted in a comment.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@dipesh-rawat
Copy link
Member

Page reported in issue (based on the issue title): https://kubernetes.io/docs/tasks/tools/install-kubectl-linux
/language en

@k8s-ci-robot k8s-ci-robot added the language/en Issues or PRs related to English language label Jan 24, 2024
@adityasamant25
Copy link
Contributor

Hi @erikh ,
What could be an option? Perhaps to move the comment lines outside the code block?

Also a side note,
This style of combining comments with the command to be executed within a block is seen at multiple pages throughout the site. So the issue being raised is not local to this page.

@erikh
Copy link
Author

erikh commented Jan 24, 2024 via email

@erikh
Copy link
Author

erikh commented Jan 24, 2024 via email

@erikh
Copy link
Author

erikh commented Jan 24, 2024 via email

@aj11anuj
Copy link
Member

/retitle Issue in copy-pasting snippets in terminal having comments
/sig docs
/kind feature

This issue is related to problem in copy-pasting snippets with comments in terminal. It doesn't seem a page or language specific issue.
/remove-language en

@k8s-ci-robot k8s-ci-robot changed the title Install and Set Up kubectl on Linux Issue in copy-pasting snippets in terminal having comments Jan 31, 2024
@k8s-ci-robot k8s-ci-robot added sig/docs Categorizes an issue or PR as relevant to SIG Docs. kind/feature Categorizes issue or PR as related to a new feature. and removed language/en Issues or PRs related to English language labels Jan 31, 2024
@Ritikaa96
Copy link
Contributor

/area web-development

@k8s-ci-robot k8s-ci-robot added the area/web-development Issues or PRs related to the kubernetes.io's infrastructure, design, or build processes label Feb 1, 2024
@k8s-triage-robot
Copy link

The Kubernetes project currently lacks enough contributors to adequately respond to all issues.

This bot triages un-triaged issues according to the following rules:

  • After 90d of inactivity, lifecycle/stale is applied
  • After 30d of inactivity since lifecycle/stale was applied, lifecycle/rotten is applied
  • After 30d of inactivity since lifecycle/rotten was applied, the issue is closed

You can:

  • Mark this issue as fresh with /remove-lifecycle stale
  • Close this issue with /close
  • Offer to help out with Issue Triage

Please send feedback to sig-contributor-experience at kubernetes/community.

/lifecycle stale

@k8s-ci-robot k8s-ci-robot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label May 1, 2024
@k8s-triage-robot
Copy link

The Kubernetes project currently lacks enough active contributors to adequately respond to all issues.

This bot triages un-triaged issues according to the following rules:

  • After 90d of inactivity, lifecycle/stale is applied
  • After 30d of inactivity since lifecycle/stale was applied, lifecycle/rotten is applied
  • After 30d of inactivity since lifecycle/rotten was applied, the issue is closed

You can:

  • Mark this issue as fresh with /remove-lifecycle rotten
  • Close this issue with /close
  • Offer to help out with Issue Triage

Please send feedback to sig-contributor-experience at kubernetes/community.

/lifecycle rotten

@k8s-ci-robot k8s-ci-robot added lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed. and removed lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. labels May 31, 2024
@Ritikaa96
Copy link
Contributor

I think this is worth working on as an issue.
/remove-lifecycle rotten

@k8s-ci-robot k8s-ci-robot removed the lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed. label Jun 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/web-development Issues or PRs related to the kubernetes.io's infrastructure, design, or build processes kind/feature Categorizes issue or PR as related to a new feature. needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one. sig/docs Categorizes an issue or PR as relevant to SIG Docs.
Projects
None yet
Development

No branches or pull requests

7 participants