From: Nicolas Boisselier Date: Mon, 15 Feb 2016 17:27:31 +0000 (+0100) Subject: shell_functions X-Git-Url: https://git.nbdom.net/?a=commitdiff_plain;h=30d4916ce68b4eeedac52c420404d330ac4d2ae6;p=nb.git shell_functions --- diff --git a/etc/profile.d/functions b/etc/profile.d/functions index ab01a0e8..e5ff228f 100644 --- a/etc/profile.d/functions +++ b/etc/profile.d/functions @@ -46,7 +46,8 @@ shell_help_noarg() { } shell_functions() { - set | perl -ne '/^([a-z][\w_-]+) \(\)\s*$/ and print "$1\n"' +# NB 15.02.16 set | perl -ne '/^([a-z][\w_-]+) \(\)\s*$/ and print "$1\n"' + typeset -f | perl -ne '/^([a-z][\w_-]+) \(\)\s*$/ and print "$1\n"' #set | perl -ne '/^([a-z][\w_-]+) \(\)\s*$/ and print "$1 "' | perl -pe 's/\s+$//' }