Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

tools/memory-model: Fix scripting --jobs argument

The parseargs.sh regular expression for the --jobs argument incorrectly
requires that the number of jobs be at least 10, that is, have at least
two digits. This commit therefore adjusts this regular expression to
allow single-digit numbers of jobs to be specified.

Signed-off-by: Paul E. McKenney <paulmck@kernel.org>

+1 -1
+1 -1
tools/memory-model/scripts/parseargs.sh
··· 113 113 LKMM_JOBS="`echo $njobs | sed -e 's/^\([0-9]\+\).*$/\1/'`" 114 114 ;; 115 115 --jobs|--job|-j) 116 - checkarg --jobs "(number)" "$#" "$2" '^[1-9][0-9]\+$' '^--' 116 + checkarg --jobs "(number)" "$#" "$2" '^[1-9][0-9]*$' '^--' 117 117 LKMM_JOBS="$2" 118 118 shift 119 119 ;;