Skip to content

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

@oguz-ismail

Description

@oguz-ismail

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions