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

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