From b9c95f0a8a3f2a964e011885d754ceb56d984c4c Mon Sep 17 00:00:00 2001 From: Pierre Neidhardt Date: Wed, 13 Jan 2021 19:56:30 +0100 Subject: [PATCH] ambrevar/shell: Remove spurious second value from ipv4. --- .local/share/common-lisp/source/ambrevar/shell.lisp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.local/share/common-lisp/source/ambrevar/shell.lisp b/.local/share/common-lisp/source/ambrevar/shell.lisp index c339eb9c..c3ae6f94 100644 --- a/.local/share/common-lisp/source/ambrevar/shell.lisp +++ b/.local/share/common-lisp/source/ambrevar/shell.lisp @@ -386,7 +386,7 @@ different Btrfs subvolumes." (defun ipv4 (interface) (when (string= "inet" (first (third interface))) - (ppcre:regex-replace "/.*" (second (third interface)) ""))) + (values (ppcre:regex-replace "/.*" (second (third interface)) "")))) ;; TODO: Make class for interfaces? Can iolib / usocket be helpful here? (defun interfaces (&optional interface)