[comp.unix.questions] awk system

jukoff@imram.net.com (Steve Jukoff) (04/19/91)

The (new) AWK "system()" call is difficult to use when the
command is stored in a variable:


system("vi +/string file")   ...works


cmd = "vi +/string file"
system(cmd)                  ...fails


Can anyone tell me why this occurs AND how to fix it?
The problem seems to center on multiple levels of quoting interpretation.
In AWK, there is no CSH-like "set noglob" command that I know of.