Browse Source

Separate declaration from initialization

Alois Mahdal 7 years ago
parent
commit
79947d9b36
1 changed files with 2 additions and 1 deletions
  1. 2
    1
      bin/notifirc

+ 2
- 1
bin/notifirc View File

2
 
2
 
3
 
3
 
4
 usage() {
4
 usage() {
5
-    local self=$(basename "$0")
5
+    local self      # our name
6
+    self=$(basename "$0")
6
     echo "usage: $self [options] message" >&2
7
     echo "usage: $self [options] message" >&2
7
     echo "usage: $self [options] [-l max_lines] [-L max_width] -f message_file|-" >&2
8
     echo "usage: $self [options] [-l max_lines] [-L max_width] -f message_file|-" >&2
8
     echo "options: [-h host] [-p port] [-n nick] [-c context] [-u user]" >&2
9
     echo "options: [-h host] [-p port] [-n nick] [-c context] [-u user]" >&2