From eb6eeebe7ff816ed9cd8abcf65ffaf3bd9c26df3 Mon Sep 17 00:00:00 2001 From: Stefan Frederik Date: Mon, 18 Apr 2022 08:58:36 +0200 Subject: [PATCH] do not error out if netlisting for xyce simulator with hspice/ngspice syntax option turned off --- src/spice.awk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/spice.awk b/src/spice.awk index 44af2c1b..e78085c9 100755 --- a/src/spice.awk +++ b/src/spice.awk @@ -27,7 +27,7 @@ BEGIN{ first=1 user_code=0 #20180129 - while( ARGV[1] ~ /^[-]/) { + while( (ARGV[1] ~ /^[-]/) || (ARGV[1] ~ /^$/) ) { if(ARGV[1] == "-hspice") hspice = 1 if(ARGV[1] == "-xyce") { xyce = 1} for(i=2; i<= ARGC;i++) {