Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/5/84; site ur-cvsvax.UUCP Path: utzoo!watmath!clyde!burl!ulysses!allegra!mit-eddie!think!harvard!seismo!rochester!ur-cvsvax!bill From: bill@ur-cvsvax.UUCP (Bill Vaughn) Newsgroups: net.bugs Subject: YAAB (Yet another awk bug) Message-ID: <224@ur-cvsvax.UUCP> Date: Mon, 9-Sep-85 13:17:47 EDT Article-I.D.: ur-cvsva.224 Posted: Mon Sep 9 13:17:47 1985 Date-Received: Wed, 11-Sep-85 08:29:09 EDT Distribution: net Organization: Center for Visual Science, U. of Rochester Lines: 31 DESCRIPTION: Awk's version of 'printf' core dumps or prints garbage when a field width variable is used. The manual page refers to printf(3S) so I assume this feature of printf should be implemented. REPEAT BY: Examine the following script. Try it yourself. Script started on Mon Sep 9 12:58:06 1985 % cat test.c main(){printf("%*s\n",5,"a");} % cc test.c ; a.out a % echo 5 |awk '{printf("%*s\n",$1,"a")}' l$l3lll)l:lHlSl]lhl(m%n % echo 5 |awk '{printf("%*s\n",5,"a")}' Segmentation fault (core dumped) % ^D script done on Mon Sep 9 13:01:08 1985 FIX: I don't have one. Can anyone out there help? I haven't been able to kludge around this problem as yet. _________________________________ \ Bill Vaughn / \ Center for Visual Science / | University of Rochester | / Rochester, NY 14627 \ /seismo!rochester!ur-cvsvax!bill\ ---------------------------------