flaws in xinitrc-ng

Tomasz Pala gotar at polanet.pl
Mon Jan 30 15:48:29 CET 2012


On Mon, Jan 30, 2012 at 07:34:48 +0200, Elan Ruusamäe wrote:

>>> >  for first problem, make all -x scripts executed, not sourced?
>> If you want to execute some code, just create #!sh script with proper
>> commands and source it. That's the same rule we follow for many other
>> scripts using sth.d for config inclusion (e.g. login shell startup).
> 
> you mean this?
> 
> if [ -x "$i" ]; then
> 	"$i"
> elif [ -f "$i" ]; then
> 	. "$i"

No:

vi some_script_executing_code
( any shell commands that might exit )
whatever_in_perl.pl
:x

. some_script_executing_code

-- 
Tomasz Pala <gotar at pld-linux.org>


More information about the pld-devel-en mailing list