]> git.nbdom.net Git - nb.git/commitdiff
etc/profile.d/functions
authorNicolas Boisselier <nicolas.boisselier@gmail.com>
Tue, 7 Feb 2017 10:52:51 +0000 (10:52 +0000)
committerNicolas Boisselier <nicolas.boisselier@gmail.com>
Tue, 7 Feb 2017 10:52:51 +0000 (10:52 +0000)
etc/profile.d/functions

index 82159cc9f4fbcf11b988eaa712ab575b2299a03c..c3259575e91a85a59f0199411f1a626e54b46449 100644 (file)
@@ -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+$//'
 }