Le 15/12/2014 13:44, Eric Deveaud a écrit :
> I pushed to git some modifications on the set/unset alias//function depending on the shell mode
>
> can you check it and let me know if the behaviour you've experienced is resolved.
Hi, Eric,
I compiled the latest on "master", is it the right version?
The problem is partially resolved. There is no more error, but in the
not-interactive case, I see cases (no parameter to the alias) where
the set and unset functions generate different results.
I have used the follosing simple module for my tests:
-----------------------------------------------------------------------------------
#%Module1.0
set-alias toto "ls -l"
set-alias titi "ls -l $*"
-----------------------------------------------------------------------------------
When loaded/unloaded in non-interactive mode (through the LSF
scheduler, on a remote machine), it generates the following results
(the output of modulecmd, not eval'ed):
******************************************************
LOADEDMODULES=module/use.own:mytestmod ;export LOADEDMODULES;_LMFILES_=/eng/ref/sw/atmel/modulefiles/latest/modulefiles/misc/module/use.own:/home/fbarriere/privatemodules/mytestmod ;export _LMFILES_;alias toto='ls -l';titi() { ls -l ${1+"$@"};};
******************************************************
LOADEDMODULES=module/use.own ;export LOADEDMODULES;_LMFILES_=/eng/ref/sw/atmel/modulefiles/latest/modulefiles/misc/module/use.own ;export _LMFILES_;unset -f toto;unset -f titi;
******************************************************
The first alias, without params is defined as an alias, but undefined as
a functions.
François.
--
Francois Barriere
CAD wizard / Atmel Corporation
Tel: +33 442 536 198
fra...@at... / www.atmel.com
*********************************
To lift an autumn hair is no sign of great strength; to see the sun and
moon is no sign of sharp sight; to hear the noise of thunder is no sign
of a quick ear. (The art of war, Sun Zu).
*********************************
|