On 08/19/2012 11:52 AM, Fotis Georgatos wrote:
Hi Kenneth,

On 19/08/2012 11:29, Kenneth Hoste wrote:
Nice, great tricks! Please document this somewhere on your EasyBuild wiki, and
open an issue to pull it in at the main wiki.
Done:

https://github.com/fgeorgatos/easybuild.experimental/wiki/Module-command-extension-in-bashrc

Because according to module function you redefine in .bashrc, the install
requires a 2nd argument, but your example doesn't use any?
I am not sure I get you:

shift does a "left shift" on the operands, while $@ takes all the params.
(ok, "search" should also become more intelligent for multiple operations...)

This part in the "install" subcommand:

if [ -z "$2" ]
then
    echo "Not enough params passed for install"
    return


How can "module install" work then? It will just return, unless you provide two arguments, right?


K.

Reply via email to