Project

General

Profile

« Previous | Next » 

Revision 1479

bin programs: Fixed bug in Usage message where program name was not printed because unset variable $self was used instead of $0

View differences:

bin/filter_errors
4 4
selfDir="$(dirname -- "$0")"
5 5

  
6 6
if ! test "$#" -ge 1; then
7
    echo "Usage: env [n=...] $self grep-options... <input"
7
    echo "Usage: env [n=...] $0 grep-options... <input"
8 8
    exit 2
9 9
fi
10 10

  
bin/ci_map
5 5
selfDir="$(dirname -- "$0")"
6 6

  
7 7
if ! test "$#" -eq 1; then
8
    echo "Usage: $self map >out_map"
8
    echo "Usage: $0 map >out_map"
9 9
    exit 2
10 10
fi
11 11

  

Also available in: Unified diff