Timeline for Shell function to center its first argument
Current License: CC BY-SA 4.0
3 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Dec 24, 2022 at 9:38 | comment | added | Kusalananda♦ |
Note that some shells don't initialise a COLUMNS variable.
|
|
| Dec 24, 2022 at 8:37 | comment | added | ilkkachu |
the unquoted expansion of $1 would also process any glob patterns, so if your text is e.g. 2 * 3 + 5, or ** NOTE: blahblah **, you get some weird results. (well, just a list of filenames)
|
|
| Dec 24, 2022 at 7:05 | history | answered | user unknown | CC BY-SA 4.0 |