待辦事項 #37113

Consider importing bashism/kshism/zshism

啟用日期: 2017-04-08 13:54 最後更新: 2019-01-21 00:04

回報者:
負責人:
類型:
狀態:
開啟 [Owner assigned]
元件:
里程碑:
(無)
優先權:
3
嚴重程度:
5 - 中
處理結果:
檔案:
Vote
Score: 0
No votes
0.0% (0/0)
0.0% (0/0)

細節

Maybe some of them are useful in yash, too.

  • $'...'
  • extended pipes and redirections |& (bash, zsh, csh, tcsh)
  • co-processes |& (ksh, mksh)
  • case conversion ${foo^bar}, ${foo,bar}, ${foo~bar}
  • others?

Ticket History (3/5 Histories)

2017-04-08 13:54 Updated by: magicant
  • New Ticket "Consider importing bashism/kshism/zshism" created
2017-06-09 22:15 Updated by: magicant
  • Details Updated
2017-11-18 18:25 Updated by: magicant
  • Details Updated
2019-01-10 04:51 Updated by: mcdutchie
評語

You asked for others so here is an idea. I think having ksh-compatible arrays would be useful. It is not uncommon to write semi-portable scripts that work on bash, *ksh and zsh's sh/ksh emulation, and use simple ksh-style indexed arrays. zsh has a 'ksharrays' shell option, you could implement one by the same name that would allow yash to run these scripts.

2019-01-21 00:04 Updated by: magicant
  • 優先權 Update from 5 - 中 to 3

Attachment File List

No attachments

編輯

You are not logged in. I you are not logged in, your comment will be treated as an anonymous post. » 登入