Timeline for Center text with printf
Current License: CC BY-SA 4.0
4 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Nov 2, 2021 at 16:27 | history | edited | Saboteur | CC BY-SA 4.0 |
added 1 character in body
|
| Nov 2, 2021 at 16:26 | comment | added | Saboteur |
I am not sure that <<< comes from zsh, it available in bash and it is just a short version of document here construction "gnu.org/software/bash/manual/html_node/Redirections.html" Maybe I should replace "posix" with non-bash construction, as it is available not only in bash and do the things in script and out of them.
|
|
| Nov 2, 2021 at 13:29 | comment | added | Stéphane Chazelas |
Neither <<< nor stty size are POSIX though (<<< comes from zsh, stty size will be in the next POSIX version though). Note that read splits words according to the current value of $IFS, so the above assumes $IFS still contains space or whatever character stty uses in your locale to separate the numbers (POSIX will require it being one classified as blank), and no digit.
|
|
| Nov 2, 2021 at 11:40 | history | answered | Saboteur | CC BY-SA 4.0 |