From 380380a6f11573506a2962b65e89c824cbe03e69 Mon Sep 17 00:00:00 2001 From: Nicolas Boisselier Date: Fri, 31 Jul 2015 15:43:07 +0100 Subject: [PATCH] profile --- 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 5ca4a17d..04912a4c 100644 --- a/etc/profile.d/functions +++ b/etc/profile.d/functions @@ -42,6 +42,7 @@ shell_help_noarg() { shell_functions() { set | perl -ne '/^([a-z][\w_-]+) \(\)\s*$/ and print "$1\n"' + #set | perl -ne '/^([a-z][\w_-]+) \(\)\s*$/ and print "$1 "' | perl -pe 's/\s+$//' } shell_slogin() { @@ -50,7 +51,7 @@ shell_slogin() { declare tmp; tmp="/tmp/$FUNCNAME.$USER" ( alias - type $(shell_functions) | grep -v 'is a function$' + eval type $(shell_functions|perl -pe 's/\s+/ /') | grep -v 'is a function$' #cat $NB_ROOT/etc/profile echo "[ -r /etc/profile ] && . /etc/profile" ) | ssh "$server" "cat > $tmp || rm -vf $tmp" || return -- 2.47.3