Made the created run script for command execution a bit more portable to other shells than bash (thanks to Nacho Cabanes for reporting).

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1066 ea778897-0a13-0410-b9d1-a72fbfd435f5
This commit is contained in:
Enrico Tröger 2006-12-08 09:56:31 +00:00
parent 5cfaeddaf8
commit 2a596e1f17
2 changed files with 11 additions and 3 deletions

View File

@ -1,7 +1,14 @@
2006-12-08 Enrico Troeger <enrico.troeger@uvena.de>
* src/build.c: Made the created run script for command execution a bit
more portable to other shells than bash (thanks to
Nacho Cabanes for reporting).
2006-12-07 Frank Lanitz <frank@frank.uvena.de>
* src/about.c,THANKS,configure.in,po/fr.po:
Added French translation (Thanks to Jean-Philippe Moal)
* src/about.c, THANKS, configure.in, po/fr.po:
Added French translation (Thanks to Jean-Philippe Moal).
2006-12-07 Enrico Tröger <enrico.troeger@uvena.de>

View File

@ -779,7 +779,8 @@ static gboolean build_create_shellscript(const gint idx, const gchar *fname, con
#else
str = g_strdup_printf(
"#!/bin/sh\n\n%s\n\necho \"\n\n------------------\n(program exited with code: $?)\" \
\n\necho \"Press return to continue\"\n%s\nunlink $0\n", cmd, (autoclose) ? "" : "read");
\n\necho \"Press return to continue\"\n%s\nunlink $0\n", cmd, (autoclose) ? "" :
"#to be more compatible with shells like dash\ndummy_var=\"\"\nread dummy_var");
#endif
fputs(str, fp);