summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xg2
1 files changed, 1 insertions, 1 deletions
diff --git a/g b/g
index 7ec3bdae745b..902f3ac18d05 100755
--- a/g
+++ b/g
@@ -233,7 +233,7 @@ while shift ; do
FILESNUM=$(($FILESNUM+1))
else
# make the paths absolute
- FILES[$FILESNUM]=$(perl -e 'use Cwd "abs_path"; print abs_path(shift);' "$PARAM")
+ FILES[$FILESNUM]=$(perl -e 'use Cwd "abs_path"; print abs_path(shift);' "$PARAM" 2>/dev/null)
if [ -z "${FILES[$FILESNUM]}" -o ! -e "${FILES[$FILESNUM]}" ] ; then
# it is probably not a file, but a tag name, or something
FILES[$FILESNUM]="$PARAM"