When trying to split fields by tabs, dash doesn't honour multiple tabs
between fields as whitespace (at least that's how I interpret [1],
please correct me if I'm wrong).

[1]: 
http://www.opengroup.org/onlinepubs/000095399/utilities/xcu_chap02.html#tag_02_06_05

Patch is from Stefan Potyra <[EMAIL PROTECTED]>, posted through
 http://bugs.debian.org/429251
---

Hi Herbert, I think this patch from Stefan looks just fine, and suggest
to apply it.

Regards, Gerrit.

 src/miscbltin.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/miscbltin.c b/src/miscbltin.c
index 3f91bc3..0220ac2 100644
--- a/src/miscbltin.c
+++ b/src/miscbltin.c
@@ -122,7 +122,7 @@ readcmd(int argc, char **argv)
                }
                if (c == '\n')
                        break;
-               if (startword && *ifs == ' ' && strchr(ifs, c)) {
+               if (startword && strchr(ifs, c) && ((c==' ') || (c =='\t'))) {
                        continue;
                }
                startword = 0;
-- 
1.5.3.1




-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to