diff options
| author | Paul Buetow <paul@buetow.org> | 2024-08-26 23:07:44 +0300 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2024-08-26 23:07:44 +0300 |
| commit | fa3426b5d9ac9eeccaea3aa7e4eb44e1fa2eab65 (patch) | |
| tree | f391aa531e8837ffe3ef0601d2a3aa8135c9fcca /gemfeed/2023-12-10-bash-golf-part-3.gmi | |
| parent | 87d2c5cdd30fbed688eeac23e173398e95edda10 (diff) | |
Update content for gemtext
Diffstat (limited to 'gemfeed/2023-12-10-bash-golf-part-3.gmi')
| -rw-r--r-- | gemfeed/2023-12-10-bash-golf-part-3.gmi | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/gemfeed/2023-12-10-bash-golf-part-3.gmi b/gemfeed/2023-12-10-bash-golf-part-3.gmi index 1857e286..9b9a5e6c 100644 --- a/gemfeed/2023-12-10-bash-golf-part-3.gmi +++ b/gemfeed/2023-12-10-bash-golf-part-3.gmi @@ -2,6 +2,12 @@ > Published at 2023-12-10T11:35:54+02:00 +This is the third blog post about my Bash Golf series. This series is random Bash tips, tricks, and weirdnesses I have encountered over time. + +=> ./2021-11-29-bash-golf-part-1.gmi 2021-11-29 Bash Golf Part 1 +=> ./2022-01-01-bash-golf-part-2.gmi 2022-01-01 Bash Golf Part 2 +=> ./2023-12-10-bash-golf-part-3.gmi 2023-12-10 Bash Golf Part 3 (You are currently reading this) + ``` '\ '\ '\ . . |>18>> @@ -17,7 +23,6 @@ jgs^^^^^^^`^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ## Table of Contents * ⇢ Bash Golf Part 3 -* ⇢ ⇢ Introduction * ⇢ ⇢ `FUNCNAME` * ⇢ ⇢ `:(){ :|:& };:` * ⇢ ⇢ Inner functions @@ -27,14 +32,6 @@ jgs^^^^^^^`^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ * ⇢ ⇢ Multi-line comments * ⇢ ⇢ Don't change it while it's executed -## Introduction - -This is the third blog post about my Bash Golf series. This series is random Bash tips, tricks, and weirdnesses I have encountered over time. - -=> ./2021-11-29-bash-golf-part-1.gmi 2021-11-29 Bash Golf Part 1 -=> ./2022-01-01-bash-golf-part-2.gmi 2022-01-01 Bash Golf Part 2 -=> ./2023-12-10-bash-golf-part-3.gmi 2023-12-10 Bash Golf Part 3 (You are currently reading this) - ## `FUNCNAME` `FUNCNAME` is an array you are looking for a way to dynamically determine the name of the current function (which could be considered the callee in the context of its own execution), you can use the special variable `FUNCNAME`. This is an array variable that contains the names of all shell functions currently in the execution call stack. The element `FUNCNAME[0]` holds the name of the currently executing function, `FUNCNAME[1]` the name of the function that called that, and so on. |
