From: Nicolas Boisselier Date: Mon, 18 Feb 2019 23:19:12 +0000 (+0000) Subject: etc/profile.d/functions X-Git-Url: https://git.nbdom.net/?a=commitdiff_plain;h=eab4a85cfc5f63a2bf0e51c332b1c3d938e00b5e;p=nb.git etc/profile.d/functions --- diff --git a/etc/profile.d/functions b/etc/profile.d/functions index 50cf88c5..cb7de0b5 100755 --- a/etc/profile.d/functions +++ b/etc/profile.d/functions @@ -692,7 +692,8 @@ password_create() { echo } -if ! type which > /dev/null; then +# Missing sometimes by default +if ! type which >/dev/null 2>&1; then which() { type "$1" 2>&1