Xref: utzoo comp.unix.questions:29333 comp.unix.shell:1656 Path: utzoo!news-server.csri.toronto.edu!cs.utexas.edu!sun-barr!newstop!texsun!convex!news From: tchrist@convex.COM (Tom Christiansen) Newsgroups: comp.unix.questions,comp.unix.shell Subject: Re: Awk with passed parameters Keywords: awk bsd shell Message-ID: <1991Mar11.013957.22329@convex.com> Date: 11 Mar 91 01:39:57 GMT References: <3022@dsacg3.dsac.dla.mil> <1991Mar08.141340.26881@convex.com> <1991Mar10.235414.28125@athena.mit.edu> Sender: news@convex.com (news access account) Reply-To: tchrist@convex.COM (Tom Christiansen) Organization: CONVEX Software Development, Richardson, TX Lines: 13 Nntp-Posting-Host: pixel.convex.com From the keyboard of jik@athena.mit.edu (Jonathan I. Kamens): : If he adds that dash, then things should work on virtually any version of :awk, since variable assignments in file arguments were supported in very early :versions of awk and have continued to be supported in most versions. Tom, do :you know of a version of awk which won't work properly if an extra file :argument of "-" is added to the end of the awk command? Nope, that seems to work on on the version I just tested. It really bugs me though that you should have to do that for old awk and not for the more recent incarnations. I call it a bug. --tom