aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJ08nY2025-04-15 18:45:26 +0200
committerJ08nY2025-04-15 18:45:26 +0200
commitacacd60723a7ce47b5d0de71a8caad3d9ab7ed93 (patch)
tree3b7d44c305a60f7df8dca4bf1fd6fdaab9953bec
parentc85508b4766027cfc643f599b89d86d0df0a1782 (diff)
downloadecgen-acacd60723a7ce47b5d0de71a8caad3d9ab7ed93.tar.gz
ecgen-acacd60723a7ce47b5d0de71a8caad3d9ab7ed93.tar.zst
ecgen-acacd60723a7ce47b5d0de71a8caad3d9ab7ed93.zip
Silent gp and filter the chars.
-rw-r--r--test/common.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/common.sh b/test/common.sh
index dfbbe94..7d1ea22 100644
--- a/test/common.sh
+++ b/test/common.sh
@@ -45,5 +45,5 @@ get_pari_order() {
p=$(canonical_num $(echo $1 | ${JSON} -x field\",\"p | cut -f 2))
a=$(canonical_num $(echo $1 | ${JSON} -x \"a | cut -f 2))
b=$(canonical_num $(echo $1 | ${JSON} -x \"b | cut -f 2))
- echo "ellcard(ellinit([${a}, ${b}], ${p}))" | gp -q 2>/dev/null
+ echo "ellcard(ellinit([${a}, ${b}], ${p}))" | gp -f -q | tr -cd [:digit:] 2>/dev/null
} \ No newline at end of file