The same test can be implemented using only shell code, saving the
cost of piping to an external command.
---
 quilt/scripts/patchfns.in |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- a/quilt/scripts/patchfns.in
+++ b/quilt/scripts/patchfns.in
@@ -356,7 +356,7 @@ top_patch()
 
 is_numeric()
 {
-       echo $1 | grep -q '^[0-9]*$'
+       [[ "$1" =~ ^[0-9]+$ ]]
 }
 
 is_applied()

-- 
Jean Delvare
SUSE L3 Support


_______________________________________________
Quilt-dev mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/quilt-dev

Reply via email to