oils-for-unix / oils

Oils is our upgrade path from bash to a better language and runtime. It's also for Python and JavaScript users who avoid shell!
http://www.oilshell.org/
Other
2.85k stars 159 forks source link

[ysh] Implement 1..<5 and 1..=5 open/closed range syntax #2102

Closed PossiblyAShrub closed 4 weeks ago

PossiblyAShrub commented 1 month ago

BREAKING: The a..b syntax has now been removed:

  = 1..2
     ^~
[ -c flag ]:1: Use 1..<5 for an open range, or 1..=5 for a closed range

Depends on https://github.com/oils-for-unix/oils/pull/2101 to prevent merge conflicts (assuming https://github.com/oils-for-unix/oils/pull/2101 will be merged before this PR.)


TODO:

PossiblyAShrub commented 4 weeks ago

This is ready for a review.

PossiblyAShrub commented 4 weeks ago

This is ready for another review.