Timeline for Why can't I use environment variable with chmod command? [duplicate]
Current License: CC BY-SA 4.0
10 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| S Nov 12, 2021 at 19:15 | vote | accept | cosmos-1905-14 | ||
| Nov 12, 2021 at 19:15 | vote | accept | cosmos-1905-14 | ||
| S Nov 12, 2021 at 19:15 | |||||
| Nov 12, 2021 at 12:10 | history | closed |
muru Chris Davies AdminBee GAD3R Stéphane Chazelas command-line Users with the command-line badge or a synonym can single-handedly close command-line questions as duplicates and reopen them as needed. |
Duplicate of Why doesn't the tilde (~) expand inside double quotes? | |
| Nov 12, 2021 at 11:44 | answer | added | Saboteur | timeline score: 0 | |
| Nov 12, 2021 at 0:29 | comment | added | user313992 |
tl;dr; just use export PEM_FILE=~/.ssh/xxx.pem (or PEM=$HOME/.ssh/xxx.pem; export PEM, which will work in all bourne-like shells). No, the quotes aren't needed with export PEM=.... But they are needed with chmod 400 "$PEM_FILE".
|
|
| Nov 12, 2021 at 0:12 | review | Close votes | |||
| Nov 12, 2021 at 12:10 | |||||
| Nov 11, 2021 at 23:52 | answer | added | gorgo | timeline score: 0 | |
| Nov 11, 2021 at 23:49 | comment | added | steeldriver | See Simple variable assignment: Tilde does not expand in quotes | |
| S Nov 11, 2021 at 23:40 | review | First questions | |||
| Nov 12, 2021 at 1:02 | |||||
| S Nov 11, 2021 at 23:40 | history | asked | cosmos-1905-14 | CC BY-SA 4.0 |