My /bin/sh is pdksh, which handles here-documents slightly differently
from bash: for some sequences like \", the backslash is preserved by
bash, but removed by pdksh. To ensure that a backslash appears in the
here-document, you can escape the backslash with another backslash.
This patch (against 3.6.13, but the problem and fix are the same for
3.6.14) makes the configure script work with pdksh as well as bash.
--- reiserfsprogs-3.6.13/configure.in~ 2004-03-10 17:21:56.000000000 -0500
+++ reiserfsprogs-3.6.13/configure.in 2004-03-10 17:22:42.000000000 -0500
@@ -110,7 +110,7 @@
fprintf(fout, ",\n\n");
line[strlen(line) - 1] = 0;
- fprintf(fout, "\t\"%s\\\n\"", line);
+ fprintf(fout, "\\t\\"%s\\\\n\\"", line);
start = 0;
}
}
paul