[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Savannah-cvs] [707] formatting
From: |
iank |
Subject: |
[Savannah-cvs] [707] formatting |
Date: |
Tue, 12 Dec 2023 15:59:58 -0500 (EST) |
Revision: 707
http://svn.savannah.gnu.org/viewvc/?view=rev&root=administration&revision=707
Author: iank
Date: 2023-12-12 15:59:57 -0500 (Tue, 12 Dec 2023)
Log Message:
-----------
formatting
Modified Paths:
--------------
trunk/sviki/fsf/bash-style-guide.mdwn
Modified: trunk/sviki/fsf/bash-style-guide.mdwn
===================================================================
--- trunk/sviki/fsf/bash-style-guide.mdwn 2023-12-12 20:41:20 UTC (rev
706)
+++ trunk/sviki/fsf/bash-style-guide.mdwn 2023-12-12 20:59:57 UTC (rev
707)
@@ -147,7 +147,7 @@
Add comments describing functions that are not short and
obvious. Document any arguments, global variables used, return value
that is different from the default of the exit code of the last command
-run. See the err script in this repo for example.
+run. See the <https://savannah.nongnu.org/git/?group=bash-bear-trap> for
example.
Comment any tricky or important parts of code.
@@ -171,6 +171,7 @@
```
Put then and do on the same line as the condition:
+
```
if x; then
:
@@ -181,6 +182,7 @@
```
To work from the same directory of the script
+
```
readonly this_file="$(readlink -f -- "${BASH_SOURCE[0]}")"; cd ${this_file%/*}
```
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Savannah-cvs] [707] formatting,
iank <=