From fc3b8c17f0756e3a397928529349d11601d79aed Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Tue, 10 Jan 2017 17:06:07 +1300 Subject: Change some return codes for dir marking funcs The mark not being set isn't really a usage error for the function given. --- sh/shrc.d/xd.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sh/shrc.d/xd.sh') diff --git a/sh/shrc.d/xd.sh b/sh/shrc.d/xd.sh index 01b8fd3a..40319cf2 100644 --- a/sh/shrc.d/xd.sh +++ b/sh/shrc.d/xd.sh @@ -10,7 +10,7 @@ xd() { # Complain if mark not actually set yet if ! [ -n "$PMD" ] ; then printf >&2 'gd(): Mark not set\n' - return 2 + return 1 fi # Put the current and marked directories into positional params -- cgit v1.2.3