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

fix(installer): usernames can contain @ symbol #2167

Merged
merged 1 commit into from Jan 12, 2022

Conversation

kylo252
Copy link
Collaborator

@kylo252 kylo252 commented Jan 12, 2022

Description

Switch the delimiter used in sed since usernames can contain @ symbol

Fixes #2162

How Has This Been Tested?

bash utils/installer/install_bin.sh

@kylo252
Copy link
Collaborator Author

kylo252 commented Jan 12, 2022

Do you guys know about any other gotchas that I might be missing here? 😅

cc: @chase, @abzcoding

@chase
Copy link
Collaborator

chase commented Jan 12, 2022

cc: @chase, @abzcoding

😂 Fun edge cases. Technically, usernames should not include @ as it is not POSIX compliant. This is probably Linux weirdness.

systemd actually documents it pretty well: https://systemd.io/USER_NAMES/

I don't think # should be a problem since that's a commonly used character for comments.

@kylo252
Copy link
Collaborator Author

kylo252 commented Jan 12, 2022

It's on macOS, which I never pegged for allowing this but maybe it's some old BSD rule that survived 🤷

@kylo252 kylo252 merged commit 0afc4bf into LunarVim:rolling Jan 12, 2022
@kylo252 kylo252 deleted the fix-bin-installer branch January 12, 2022 10:40
tomazursic pushed a commit to tomazursic/LunarVim that referenced this pull request Jan 27, 2022
* upstream/master: (57 commits)
  chore: update changelog
  chore(installer): require neovim 0.6.1+ (LunarVim#2211)
  chore(plugins): bump plugin version, also fix for offset_encoding (LunarVim#2210)
  fix(logging): disable insane amount of logging inside lvim.log (LunarVim#2205)
  fix(autopairs): remove weird tex rules from autopairs (LunarVim#2206)
  chore(plugins): bump plugin version (LunarVim#2201)
  chore(plugins): restore the base folke/lua-dev (LunarVim#2193)
  chore(plugins): bump plugin version (LunarVim#2190)
  refactor: remove unused outdated files (LunarVim#2184)
  fix(lsp): use temporary fork of lua-dev (LunarVim#2187)
  chore(plugins): bump plugin version and also fix nvim-cmp cmdline issue (LunarVim#2183)
  refactor(nvim-tree): cleanup and update settings (LunarVim#2182)
  chore(plugins): bump version (LunarVim#2181)
  fix(diag): show lsp-diag code in open_float (LunarVim#2180)
  feat(plugins): bump core plugin version (LunarVim#2176)
  chore: update changelog
  fix(which-key): the PR has been merged to the original repo (LunarVim#2172)
  fix(zsh): don't set filetype to sh (LunarVim#2035)
  feat(plugins): bump core plugin version (LunarVim#2169)
  fix(installer): usernames can contain @ symbol (LunarVim#2167)
  ...
tomazursic pushed a commit to tomazursic/LunarVim that referenced this pull request Jan 27, 2022
* upstream/rolling: (42 commits)
  chore(plugins): bump plugin version (LunarVim#2217)
  fix(lsp): avoid accessing undefined user_data (LunarVim#2216)
  chore(installer): require neovim 0.6.1+ (LunarVim#2211)
  chore(plugins): bump plugin version, also fix for offset_encoding (LunarVim#2210)
  fix(logging): disable insane amount of logging inside lvim.log (LunarVim#2205)
  fix(autopairs): remove weird tex rules from autopairs (LunarVim#2206)
  chore(plugins): bump plugin version (LunarVim#2201)
  chore(plugins): restore the base folke/lua-dev (LunarVim#2193)
  chore(plugins): bump plugin version (LunarVim#2190)
  refactor: remove unused outdated files (LunarVim#2184)
  fix(lsp): use temporary fork of lua-dev (LunarVim#2187)
  chore(plugins): bump plugin version and also fix nvim-cmp cmdline issue (LunarVim#2183)
  refactor(nvim-tree): cleanup and update settings (LunarVim#2182)
  chore(plugins): bump version (LunarVim#2181)
  fix(diag): show lsp-diag code in open_float (LunarVim#2180)
  feat(plugins): bump core plugin version (LunarVim#2176)
  fix(which-key): the PR has been merged to the original repo (LunarVim#2172)
  fix(zsh): don't set filetype to sh (LunarVim#2035)
  feat(plugins): bump core plugin version (LunarVim#2169)
  fix(installer): usernames can contain @ symbol (LunarVim#2167)
  ...
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

Successfully merging this pull request may close these issues.

Install failed - sed error
2 participants