diff options
author | Arnold D. Robbins <arnold@skeeve.com> | 2014-02-20 20:36:30 +0200 |
---|---|---|
committer | Arnold D. Robbins <arnold@skeeve.com> | 2014-02-20 20:36:30 +0200 |
commit | e069c636968370f0899d5e4ebaeb9c2341804245 (patch) | |
tree | 166f0ce6417fc802b68cee91774727e6be53e0cb /field.c | |
parent | 624d70844fe63068132adb7c66ea3f8a231e56a7 (diff) | |
parent | 0b8ef4f18527f751ef60fc3202cd7143079121fb (diff) | |
download | egawk-e069c636968370f0899d5e4ebaeb9c2341804245.tar.gz egawk-e069c636968370f0899d5e4ebaeb9c2341804245.tar.bz2 egawk-e069c636968370f0899d5e4ebaeb9c2341804245.zip |
Merge branch 'master' into comment
Diffstat (limited to 'field.c')
-rw-r--r-- | field.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -3,7 +3,7 @@ */ /* - * Copyright (C) 1986, 1988, 1989, 1991-2013 the Free Software Foundation, Inc. + * Copyright (C) 1986, 1988, 1989, 1991-2014 the Free Software Foundation, Inc. * * This file is part of GAWK, the GNU implementation of the * AWK Programming Language. @@ -1013,7 +1013,9 @@ do_split(int nargs) return make_number((AWKNUM) 0); } - if ((sep->re_flags & FS_DFLT) != 0 && current_field_sep() != Using_FIELDWIDTHS && ! RS_is_null) { + if ( (sep->re_flags & FS_DFLT) != 0 + && current_field_sep() == Using_FS + && ! RS_is_null) { parseit = parse_field; fs = force_string(FS_node->var_value); rp = FS_regexp; |