Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
RadiozRadioz
on July 16, 2025
|
parent
|
context
|
favorite
| on:
I'm switching to Python and actually liking it
For this example, don't just command line arguments. There's an API key there, you don't want an API key visible in your cmdline.
bjourne
on July 16, 2025
[–]
Then how would you SET the API key in the first place? :) The argument doesn't make any sense at all.
medstrom
on July 16, 2025
|
parent
|
next
[–]
In some .profile or .envrc or what you'd call such a file, I suppose.
NoGravitas
on July 17, 2025
|
root
|
parent
|
next
[–]
And you expect someone will be able to read your bash_history, but not your .profile?
medstrom
on July 18, 2025
|
root
|
parent
|
next
[–]
Fair, I wasn't thinking about the details of how someone would lift out the bash history.
fc417fc802
on July 18, 2025
|
parent
|
prev
[–]
Using read or an equivalent, presumably. Just because you don't know why a practice is recommended against doesn't mean that there isn't a good alternative.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: