gsu_getopts 't:v'
eval "$result"
- (($ret < 0)) && return
+ ((ret < 0)) && return
[[ -z "$o_t" ]] && o_t='ext3' # default to ext3 if -t is not given
[[ "$o_v" == 'true' ]] && awk_field=0 # $0 is the whole line
com_world()
{
gsu_check_arg_count $# 0 0 # no arguments allowed
- (($ret < 0)) && return
+ ((ret < 0)) && return
echo 'hello world'
}
local optstring='t:v'
gsu_complete_options $optstring "$@"
- (($ret > 0)) && return
+ ((ret > 0)) && return
gsu_cword_is_option_parameter $optstring "$@"
[[ "$result" == 't' ]] && awk '{print $3}' "$f"
local username
gsu_inputbox 'Enter username' "$LOGNAME"
- (($ret != 0)) && return
+ ((ret != 0)) && return
username="$result"
gsu_msgbox "$(pgrep -lu "$username")"
}
local username
gsu_inputbox 'Enter username' "$LOGNAME"
- (($ret < 0)) && return
+ ((ret < 0)) && return
username="$result"
gsu_msgbox "$(pgrep -lu "$username")"
}
----------
- [bash](http://www.gnu.org/software/bash/bash.html)
- [dialog](http://www.invisible-island.net/dialog/dialog.html)
+- [The author's home page](http://people.tuebingen.mpg.de/maan/)