Timeline for export command behaviour in bash vs bourne shell
Current License: CC BY-SA 4.0
13 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Mar 29, 2023 at 7:11 | history | edited | muru | CC BY-SA 4.0 | added 2 characters in body |
| Mar 29, 2023 at 6:35 | comment | added | Ben Ldr | @ilkkachu you're absolutely right. /bin/sh --version shows it's Bash 3.2. | |
| Mar 28, 2023 at 18:14 | comment | added | ilkkachu | @BenLdr, it's that Bash 3.2, try /bin/sh --version. Just note that when called as sh, Bash goes to its POSIX mode, where it acts slightly different from when called as bash... | |
| Mar 28, 2023 at 16:38 | vote | accept | Ben Ldr | ||
| Mar 28, 2023 at 16:30 | comment | added | Ben Ldr | Ah I see! I'm not sure which shell is being used... @K-att- running ls -la /bin/sh gave -rwxr-xr-x 1 root wheel 150384 24 Aug 2022 /bin/sh. I'm running macOS Monterey, version 12.6. Ie a modern Mac... | |
| Mar 28, 2023 at 10:22 | history | edited | Kusalananda♦ | edited tags | |
| Mar 28, 2023 at 10:18 | answer | added | cas | timeline score: 0 | |
| Mar 28, 2023 at 8:55 | answer | added | ilkkachu | timeline score: 1 | |
| Mar 28, 2023 at 8:38 | comment | added | terdon♦ | It is very, very unlikely that your /bin/sh is the Bourne shell. What operating system are you using? The Bourne shell is not really seen in the wild anymore. | |
| Mar 28, 2023 at 8:27 | answer | added | Kusalananda♦ | timeline score: 1 | |
| Mar 28, 2023 at 8:05 | comment | added | K-attila- | Check your console. I think, you use dash. (Check : ls -la /bin/sh) | |
| S Mar 28, 2023 at 7:48 | review | First questions | |||
| Mar 28, 2023 at 8:57 | |||||
| S Mar 28, 2023 at 7:48 | history | asked | Ben Ldr | CC BY-SA 4.0 |