You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To reproduce, put the following into a file (say, foo),
for x; do
shift $#
echo $x
done
and run:
$ oksh ./foo x y z
x
y
./foo
No other shell does this except mksh.
The text was updated successfully, but these errors were encountered:
oguz-ismail
changed the title
shift $#' inside for loop without in word...' part breaks the parameter listshift $# inside for loop without in word... part breaks the parameter list
Oct 20, 2021
Thank for the report. This is one where I'll ask you to please confirm that the behavior is the same with the in-base ksh on OpenBSD (I suspect it is) and send an email to their bugs@ list. And I'll merge the fix from there.
To reproduce, put the following into a file (say,
foo
),and run:
No other shell does this except mksh.
The text was updated successfully, but these errors were encountered: