@@ -133,13 +133,13 @@ in if configure == null then weechat else
133133
134134 scripts = builtins.concatStringsSep ";" (lib.foldl (scripts: drv: scripts ++ mkScript drv)
135135 [ ] (config.scripts or []));
136− in "${scripts}\n${init}";
136+ in "${scripts};${init}";
137137
138138 mkWeechat = bin: (writeScriptBin bin ''
139139 #!${stdenv.shell}
140140 export WEECHAT_EXTRA_LIBDIR=${pluginsDir}
141141 ${lib.concatMapStringsSep "\n" (p: lib.optionalString (p ? extraEnv) p.extraEnv) plugins}
142− exec ${weechat}/bin/${bin} "$@" --run-command "${init}"
142+ exec ${weechat}/bin/${bin} "$@" --run-command ${lib.escapeShellArg init}
143143 '') // {
144144 inherit (weechat) name meta;
145145 unwrapped = weechat;