aboutsummaryrefslogtreecommitdiffstats
path: root/field.c
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2014-02-20 20:36:30 +0200
committerArnold D. Robbins <arnold@skeeve.com>2014-02-20 20:36:30 +0200
commite069c636968370f0899d5e4ebaeb9c2341804245 (patch)
tree166f0ce6417fc802b68cee91774727e6be53e0cb /field.c
parent624d70844fe63068132adb7c66ea3f8a231e56a7 (diff)
parent0b8ef4f18527f751ef60fc3202cd7143079121fb (diff)
downloadegawk-e069c636968370f0899d5e4ebaeb9c2341804245.tar.gz
egawk-e069c636968370f0899d5e4ebaeb9c2341804245.tar.bz2
egawk-e069c636968370f0899d5e4ebaeb9c2341804245.zip
Merge branch 'master' into comment
Diffstat (limited to 'field.c')
-rw-r--r--field.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/field.c b/field.c
index 0a7cee8f..64ee1f02 100644
--- a/field.c
+++ b/field.c
@@ -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;