diff options
Diffstat (limited to 'field.c')
-rw-r--r-- | field.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -952,6 +952,9 @@ do_split(int nargs) return make_number((AWKNUM) 0); } + if ((sep->flags & REGEX) != 0) + sep = sep->typed_re; + if ( (sep->re_flags & FS_DFLT) != 0 && current_field_sep() == Using_FS && ! RS_is_null) { @@ -1014,6 +1017,9 @@ do_patsplit(int nargs) src = TOP_STRING(); + if ((sep->flags & REGEX) != 0) + sep = sep->typed_re; + fpat = sep->re_exp; if (fpat->stlen == 0) fatal(_("patsplit: third argument must be non-null")); |