Bash 5.2 yakatoburitswa uye inouya nenhau, kugadzirisa nezvimwe

Bash

Bash (Bourne Again Shell) iGNU Project, kuita kwakazara kwePOSIX shell yakatarwa.

Mushure memakore anenge maviri ebudiriro (mwedzi makumi maviri yebudiriro kuti ive chaiyo) kuvhurwa kwe iyo itsva vhezheni yeGNU shell Bash 5.2, inova inogadziridza kubazi rechishanu (5.x) uye kuti kuburitswa uku kunogadzirisa akati wandei anocherekedza tsikidzi mubash-5.1 uye inosuma huwandu hwezvinhu zvitsva.

Kune avo imi vatsva kubhash, iwe unofanirwa kuziva kuti iyi igomba rekutanga pane akawanda Linux kugovera.

Main nyowani maficha eBash 5.2

Mune iyi vhezheni itsva inounzwa kubva kuBash 5.2 zvinocherechedzwa kuti basa rakaitwa pakunyora patsva kodhi yekuongorora mirairo inotsiva inovaka uye kutsiva chinobuda paunenge uchiita mumwe murairo, senge "$(command)" kana `command`. Kuitwa kutsva kunodaidza bison parser ichidzokorodza. Izvi zvinotsiva iyo ad-hoc parsing yakashandiswa mushanduro dzakapfuura uye inobvumira zvirinani kutarisa syntax uye kubata zvikanganiso zve syntax kare.

Imwe shanduko inomira pachena mune iyi vhezheni itsva yeBash 5.2 ndiyo kunatsiridza kupatsanurwa uye kuwedzera kwe array indices, pamwe nekugona kushandisa iyo "@" uye "*" ma parameter mune buildin command yekusetazve kiyi kune yakapihwa kukosha panzvimbo yekudzoreredza iyo array yese yaitwa.

Pamusoro peizvi, zvinonziwo izvozvo akawedzera marongero matsva "patsub_replacement", kana yaiswa, iyo '&' hunhu mutambo yakatsiviwa inoshandiswa kutsiva chikamu chetambo chinofanana nepeteni yakapihwa.

Tambien zvinoratidzwa kuti pane hurongwa hutsva hwekuverenga nguva dzekumirira, iyo inosanganisira itsva
mabasa eruzhinji kuseta nguva uye kuona kuti inguvai yasara isati yapera, uyezve pane itsva config sarudzo: --ne-shared-termcap-library, iyo inomanikidza raibhurari yekuverenga yakagovaniswa kuti ibatanidze kune yakagovaniswa termcap raibhurari (kana kutuka. /ncurses/termlib) saka maapplication haafanire kudaro.

Yeimwe shanduko izvo zvinomira kunze kweiyi vhezheni itsva yeBash 5.2:

  • Huwandu hwemamiriro ezvinhu apo mamwe maitiro asina forogo akawedzerwa, semuenzaniso, forogo haichashandiswa kana uchishandisa "$(" kuvaka.
  • Yakaitwa itsva yemukati chimiro chenguva uye timeout calculation.
  • Inopa kugona kugonesa panguva yekuunganidza (kugadzirisa --enable-alt-array-implementation) imwe nzira yekumisikidza iyo inogadziridzwa kuti iwane yakanyanya kukurumidza kuwana pamutengo wekuwedzera ndangariro kushandiswa.
  • Kuwedzerwa kushandiswa kwe$'…' uye $»…» matsivedzo anoshandiswa mukugarisana.
  •  'printf' ine chimiro chitsva chinotsanangura '% Q'. Izvi zvinoita se "% q" asi zvinoshandisa chero zvakatsanangurwa kunharo yekutanga pasina makotesheni, wozotora uye zvinoburitsa mubairo.
  • Yakawedzerwa noexpand_translations setting uye "configure --enable-translatable-strings" kuvaka sarudzo yekutonga kuti inotsigira $"..." ma substitutions anogoneka akabatidzwa.
  • Mune posix modhi, iyo `printf' ikozvino inogona kushandiswa kureba yakapetwa kaviri painoyangarara poindi yekushandura inofananidzira kana iripo, zvikasadaro inofanira kungopetwa kaviri neimwe nzira.
  • Yakawedzerwa uye inogoneswa ne "globskipdots" yekusarudzika kudzivirira "." uye ".." kana uchiwedzera nzira..

Panguva imwecheteyo, raibhurari yekuverenga 8.2 yakaburitswa, iyo inoshandiswa mubash kuronga mutsara wekuraira.

Pakupedzisira, zvinofanira kutaurwa kuti iyi vhezheni yebash inogona kubatanidzwa neraibhurari yeReadline yakatoiswa panzvimbo yevhezheni yakavanzika mu lib/readline kana uchida. Zvakakosha chete kutaura kuti shanduro ye kuverenga-8.1 uye shanduro dzepashure dzinogona kupa zviratidzo zvese zvinodiwa nebash-5.2, saka shanduro dzekare dzeraibhurari yeReadline hadzishande nemazvo.

Pakupedzisira kune avo vanofarira kukwanisa kuziva zvishoma uye zvakare avo vanoda kuwana iyi vhezheni itsva izvozvi, unogona kushanyira chinotevera chinongedzo.

Nzira yekuwana sei Bhash 5.2 paLinux?

Pari zvino Izvo zvinongoramba zvakamirira kuti iyi nyowani vhezheni yeBash iiswe mukati mezvakachengetedzwa zvekuparadzirwa kweLinux, nekuti ndiyo sarudzo yakanakisa.


Izvo zviri muchinyorwa zvinoomerera pamisimboti yedu ye tsika dzekunyora. Kuti utaure chikanganiso tinya pano.

Iva wekutanga kutaura

Siya yako yekutaura

Your kero e havazobvumirwi ichibudiswa.

*

*

  1. Inotarisira data: AB Internet Networks 2008 SL
  2. Chinangwa cheiyo data: Kudzora SPAM, manejimendi manejimendi.
  3. Legitimation: Kubvuma kwako
  4. Kutaurirana kwedata
  5. Dhata yekuchengetedza: Dhatabhesi inobatwa neOccentus Networks (EU)
  6. Kodzero: Panguva ipi neipi iwe unogona kudzora, kupora uye kudzima ruzivo rwako