Skip to content

v1.2.4

Choose a tag to compare

@ryuichiueda ryuichiueda released this 01 Jan 09:03
· 60 commits to beta since this release

Addition of features

This version additionally passed the test cases in https://github.com/shellgei/rusty_bash_test/blob/v1.2.4/test_fixed.bash .

What's Changed

  • Supported coprocess (coproc command)
🍣 coproc HOGE { while read A ; do echo "HOGE" $A ; done ; }
[1] 365259
🍣 echo bbb >&${HOGE[1]}
🍣 read V <&${HOGE[0]}
🍣 echo $V
HOGE bbb
🍣 echo ccc >&${HOGE[1]}
🍣 read V <&${HOGE[0]}
🍣 echo $V
HOGE ccc
🍣 jobs
[1]+  Running                 coproc HOGE { while read A ; do echo "HOGE" $A ; done ; } &
🍣 kill %1
🍣 jobs
[1]+  Done                    coproc HOGE { while read A ; do echo "HOGE" $A ; done ; }
🍣 jobs
🍣
  • Supported nameref
🍣 A=123
🍣 declare -n B=A    # B becomes a reference of A
🍣 B=xyz
🍣 echo $A
xyz
  • Spported FUNCNUME and BASH_LINENO

  • Impremented caller roughly

  • Fixed clippy warnings by @LifelessPumpkin in #172

  • Fixed bugs around arrays

New Contributors

Full Changelog: v1.2.3...v1.2.4