From: Nicolas Boisselier Date: Tue, 7 Feb 2017 10:55:13 +0000 (+0000) Subject: etc/profile.d/functions X-Git-Url: https://git.nbdom.net/?a=commitdiff_plain;h=36a1c06354cd09902ecbb0162dec59c0fcb1ee36;p=nb.git etc/profile.d/functions --- diff --git a/etc/profile.d/functions b/etc/profile.d/functions index c3259575..1d0da2f8 100644 --- a/etc/profile.d/functions +++ b/etc/profile.d/functions @@ -163,7 +163,7 @@ shell_help_noarg() { shell_functions() { # NB 15.02.16 set | perl -ne '/^([a-z][\w_-]+) \(\)\s*$/ and print "$1\n"' - typeset -f | awk '/^[a-z]+[a-zA-Z0-9_]+/{print $1}' + 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+$//' }