Project

General

Profile

« Previous | Next » 

Revision 9050

*{.sh,run}: use shorter `test` instead of `test -n` and `test !` instead of `test -z` (http://www.gnu.org/software/bash/manual/bash.html#Bourne-Shell-Builtins > test)

View differences:

local.sh
35 35
psql () # usage: [file=...] [dir=...] self
36 36
{
37 37
	echo_func
38
	if test -n "$file"; then
38
	if test "$file"; then
39 39
		set -- --file "$file" "$@"
40 40
		local dir="${dir:-$(dirname "$file")}"
41 41
	fi

Also available in: Unified diff