Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

shift $# inside for loop without in word... part breaks the parameter list #65

Open
oguz-ismail opened this issue Oct 20, 2021 · 1 comment

Comments

@oguz-ismail
Copy link

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.

@oguz-ismail oguz-ismail changed the title shift $#' inside for loop without in word...' part breaks the parameter list shift $# inside for loop without in word... part breaks the parameter list Oct 20, 2021
@ibara
Copy link
Owner

ibara commented 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants