| delorie.com/archives/browse.cgi | search |
| Date: | Fri, 7 Feb 2003 20:36:10 GMT |
| From: | abc AT anchorageinternet DOT org |
| Message-Id: | <200302072036.h17KaAHw096385@en26.groggy.anc.acsalaska.net> |
| X-Authentication-Warning: | en26.groggy.anc.acsalaska.net: abc set sender to abc AT anchorageinternet DOT org using -f |
| Subject: | Bug: bash? date? awk? |
| X-Mailer: | Umail v2.9.2 |
| To: | djgpp AT delorie DOT com |
| Reply-To: | djgpp AT delorie DOT com |
DJGPP v2.03/Windows98
$ awk 'BEGIN { system("date '+%y'`echo $$`") }'
the line above crashes with the message:
date.exe: too many non-option arguments
however, it shouldn't crash according to RH Linux/FreeBSD.
also:
$ awk 'BEGIN { system("echo $$") }'
outputs: $$
the (g)awk system call doesn't do $variable expansion,
as it should ....
thank you.
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |