Skip to content

Releases: ryuichiueda/opy

v2.0.0

18 Oct 13:20
Compare
Choose a tag to compare

Enable to parse hex, oct, and binary numbers.

$ echo 0xa0 0b11 -0o11 | ./opy '[*F[1:]]'
160 3 -9

v1.9.3

08 Oct 13:56
Compare
Choose a tag to compare

Fix a bug that causes the following unintended output.

echo hoge | opy '[F0]'
hoge
                     # a blank line

v1.9.1

29 Sep 06:32
Compare
Choose a tag to compare

points of update

  • added a dictionary and a list for general purpose use.
$ seq 10 | opy '{D[NR%2]+=F1};E:["odd sum:", D[1], "\neven sum:", D[0] ]'
odd sum: 25 
even sum: 30
seq 10 | ./opy 'NR%2:{L.append(F1)};E:[L]'
[1, 3, 5, 7, 9]

v1.8.0

17 Sep 10:35
Compare
Choose a tag to compare

points of update

  • changed specification of join function
### join F[2], and F[4] with @ ###
$ echo {a..e} | ./opy -o @ '[join(F,[2,4])]'
b@d
### join F[2], F[3], and F[4] with @ ###
$ echo {a..e} | ./opy -o @ '[join(F[2:5])]'
b@c@d

v.1.7.0

17 Sep 06:36
Compare
Choose a tag to compare

points of update

  • implemented join and dropjoin function.
### join F[2], F[3], and F[4] with @ ###
$ echo {a..e} | ./opy -o @ '[join(F,2,4)]'
b@c@d
### drop the second field ###
$ echo {a..e} | ./opy '[dropjoin(F,2)]'
a c d e
### drop the second and third field ###
$ echo {a..e} | ./opy '[dropjoin(F,[2,3])]'
a d e
### F0 is also accepted. ###
$ echo {a..e} | ./opy '[dropjoin(F0,[2,3])]'
a d e
  • added comments

v.1.5.0

12 Sep 23:50
Compare
Choose a tag to compare

Fix a problem of variables defined before a closure.

  • example:
### v.1.5.0 ###
echo 2 | opy '{a=F1;print(" ".join([ str(x)*a for x in range(3) ])) }'
00 11 22
### before v.1.4.4 ###
echo 2 | opy '{a=F1;print(" ".join([ str(x)*a for x in range(3) ])) }'
... 
NameError: name 'a' is not defined

v.1.4.4

10 Sep 09:20
Compare
Choose a tag to compare

First release for homebrew