From: Nicolas Boisselier Date: Tue, 7 Feb 2017 10:52:51 +0000 (+0000) Subject: etc/profile.d/functions X-Git-Url: https://git.nbdom.net/?a=commitdiff_plain;h=40043f335a87202002bd82c2b2f2357d629675d7;p=nb.git etc/profile.d/functions --- diff --git a/etc/profile.d/functions b/etc/profile.d/functions index 82159cc9..c3259575 100644 --- a/etc/profile.d/functions +++ b/etc/profile.d/functions @@ -163,7 +163,8 @@ shell_help_noarg() { shell_functions() { # 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"' + typeset -f | awk '/^[a-z]+[a-zA-Z0-9_]+/{print $1}' +# NB 07.02.17 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+$//' }