awk system("vi +/string file")

Steve Jukoff jukoff at imram.net.com
Fri Apr 19 11:38:33 AEST 1991


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.



More information about the Comp.unix.questions mailing list