diff options
author | Igor Pashev <pashev.igor@gmail.com> | 2015-03-24 22:06:35 +0300 |
---|---|---|
committer | Igor Pashev <pashev.igor@gmail.com> | 2015-03-24 22:06:35 +0300 |
commit | 5e4b4e1c1142a747fa1ba6286639b4d82d80f4ce (patch) | |
tree | 5f561a35c72bd0c944a3df9ce216f071bf481f4a /read.c | |
parent | 030eb1cecb5bca5a5999dee1fd3f37639ab79a2d (diff) | |
download | gunmake-5e4b4e1c1142a747fa1ba6286639b4d82d80f4ce.tar.gz |
Eat trailing spaces in sun mode
Diffstat (limited to 'read.c')
-rw-r--r-- | read.c | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -2567,6 +2567,14 @@ readline (struct ebuffer *ebuf) } #endif + /* In SunOS mode strip trailing spaces. */ + if (sun_flag) + { + while ((p - start) > 1 && (p[-2] == ' ' || p[-2] == '\t')) + --p; + p[-1] = '\n'; + } + backslash = 0; for (p2 = p - 2; p2 >= start; --p2) { |