From 40043f335a87202002bd82c2b2f2357d629675d7 Mon Sep 17 00:00:00 2001 From: Nicolas Boisselier Date: Tue, 7 Feb 2017 10:52:51 +0000 Subject: [PATCH] etc/profile.d/functions --- etc/profile.d/functions | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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+$//' } -- 2.47.3