getfields(2) didn't explain that gettokens keeps quotes in the resulting strings but tokenize strips them. Reference: /n/sources/patch/applied/man-getfields Date: Fri Feb 1 13:04:10 CET 2008 Signed-off-by: forsyth@terzarima.net --- /sys/man/2/getfields Fri Feb 1 13:03:14 2008 +++ /sys/man/2/getfields Fri Feb 1 13:03:11 2008 @@ -76,16 +76,20 @@ except that fields may be quoted using single quotes, in the manner of .IR rc (1). +Any such quotes remain in the resulting +.IR args . See .IR quote (2) for related quote-handling software. .PP .I Tokenize -is +is similar to .I gettokens with .I delims -set to \f5"\et\er\en "\fP. +set to \f5"\et\er\en\ "\fP, +except that quotes are interpreted but do not appear in the resulting +.IR args . .SH SOURCE .B /sys/src/libc/port/tokenize.c .SH SEE ALSO