A select-loop in the shell can be stopped in two cases only if there is a break statement or a keyboard interrupt. The main objective of using a select loop is that it represents different data elements in the form of a numbered list to the user.
https://www.geeksforgeeks.org/linux-unix/shell-scripting-select-loop/

