diff options
Diffstat (limited to 'twopane.bash')
-rwxr-xr-x | twopane.bash | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/twopane.bash b/twopane.bash index 2a3c9ad..c4cc027 100755 --- a/twopane.bash +++ b/twopane.bash | |||
@@ -1,9 +1,9 @@ | |||
1 | #!/bin/bash | 1 | #!/bin/bash |
2 | BASH_ARGV0=twopane.bash | ||
2 | set -e | 3 | set -e |
3 | set -f | 4 | set -f |
4 | set -o pipefail | 5 | set -o pipefail |
5 | shopt -s lastpipe | 6 | shopt -s lastpipe |
6 | PROGNAME=${0##*/} | ||
7 | 7 | ||
8 | BOT_SIZE=8 | 8 | BOT_SIZE=8 |
9 | BOT_TITLE=input | 9 | BOT_TITLE=input |
@@ -29,7 +29,7 @@ STY=twopane.${TWOPANE##*/} | |||
29 | 29 | ||
30 | save_file() | 30 | save_file() |
31 | { | 31 | { |
32 | cat > "$TWOPANE"/"${1:?$PROGNAME: Error: filename cannot be empty string}" | 32 | cat > "$TWOPANE"/"${1:?$0: Error: filename cannot be empty string}" |
33 | } | 33 | } |
34 | save_screenrc() | 34 | save_screenrc() |
35 | { | 35 | { |