| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
More strict handling of the password parameter. After `shift`, `$*` considers not only the first parameter, but all as password. `setup email add foo@example.com top secret` makes "topsecret" the password, which is weird.
|
@georglauterbach @polarathene If you agree, I'll change this logic in the other files as well. |
Sorry, something went wrong.
I cannot recall, the scripts for all of these features was inconsistent and messy (Not that the unified approach I refactored is any more pleasant to work with). It was probably a naive approach. If someone wants spaces they should quote wrap, no clue why we'd take in additional parameters, I think some utilities did have sanity checks on parameter length. This is really something that'd be much nicer in Rust or similar instead of the assortment of shell scripts and awkward syntax required for some of the logic which is not as nice to maintain. If there was a reason for it that isn't obvious and we break something by removing the shift logic, then we revert and add test cases 😅 I assume the shift was used for the convenience of passing remaining params to a function call with ${@}? I haven't looked at those scripts in some time. The reference issue this is a fix for I think was more of a UX error with the omission of a password, there is no prompt provided as context for "Enter a password" (there is in the script... but not in their output of the bug report? 🤷♂️ ) |
Sorry, something went wrong.
|
|
||
| # Also used by addsaslpassword | ||
| function _password_request_if_missing() { | ||
| local CONFIRM |
There was a problem hiding this comment.
Perhaps PASSWD_CONFIRM or similar would be a bit better in context. I'm not fussed either way though.
Sorry, something went wrong.
|
I don't know either why we use ${*}, ${2} seems more appropriate 👍🏼 |
Sorry, something went wrong.
There was a problem hiding this comment.
LGTM 👍
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Description
Fixes: #4071 (typo when entering the password)
Type of change
Checklist