From 30d4916ce68b4eeedac52c420404d330ac4d2ae6 Mon Sep 17 00:00:00 2001 From: Nicolas Boisselier Date: Mon, 15 Feb 2016 18:27:31 +0100 Subject: [PATCH] shell_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 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+$//' } -- 2.47.3