[dpdk-dev] [Bug 419] usertools/dpdk-setup.sh crashes on non-alphanumeric input
bugzilla at dpdk.org
bugzilla at dpdk.org
Mon Mar 16 08:05:44 CET 2020
https://bugs.dpdk.org/show_bug.cgi?id=419
Bug ID: 419
Summary: usertools/dpdk-setup.sh crashes on non-alphanumeric
input
Product: DPDK
Version: 20.11
Hardware: All
OS: All
Status: UNCONFIRMED
Severity: normal
Priority: Normal
Component: other
Assignee: dev at dpdk.org
Reporter: sarosh.arif at emumba.com
Target Milestone: ---
While using usertools/dpdk-setup.sh if the user enters any non-alphanumeric
character, by mistake perhaps, instead of giving an error and allowing user to
re-enter his choice, the dpdk-setup script crashes giving the following
message:
./dpdk-setup.sh: line 598: >: syntax error: operand expected (error token is
">")
A possible solution can be to put a conditional statement before the execution
of line 598 which is:
${OPTIONS[our_entry]} ${our_entry}
To make sure this statement is only executed when the input is correct.
This error can be replicated easily by following these steps:
1. Enter these commands on the terminal
cd dpdk/usertools
./dpdk-setup.sh
2. When prompted, enter any non-alphanumeric character such as ">"
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the dev
mailing list