Ian Jackson, le Thu 25 Sep 2014 16:29:05 +0100, a écrit :
> I have prepared bash packages which do not honour any shell functions
> they find in the environment. IMO that is a crazy feature, which
> ought to be disabled. (I'm running this on chiark now and nothing has
> visibly broken yet.)
Yes.
€ cat test.sh
#!/bin/bash
echo foo
€ export echo='() { /bin/echo bar; }'
€ ./test.sh
bar
Sounds crazy to me.
Samuel