{"id":170397,"date":"2026-05-05T00:24:37","date_gmt":"2026-05-04T22:24:38","guid":{"rendered":"https:\/\/prohoster.info\/blog\/novosti-interneta\/brush-v0-4-0"},"modified":"2026-05-05T00:24:37","modified_gmt":"2026-05-04T22:24:38","slug":"brush-v0-4-0","status":"publish","type":"post","link":"https:\/\/prohoster.info\/hu\/blog\/news\/brush-v0-4-0","title":{"rendered":"Brush v0.4.0","gt_translate_keys":[{"key":"rendered","format":"text"}]},"content":{"rendered":"<p><img decoding=\"async\" alt=\"Brush v0.4.0\" src=\"\/wp-content\/uploads\/2026\/05\/deb96524d1d6aa343c36a9ae0b05d47e.jpg\" style=\"display:block;margin: 0 auto;\" \/>                                    <\/p>\n<p>A Brush \u2013 egy Rust nyelven \u00edrt parancssori fel\u00fclet, amely a POSIX \u00e9s Bash kompatibilit\u00e1s\u00e1t kombin\u00e1lja a mem\u00f3ria biztons\u00e1gi garanci\u00e1ival \u00e9s teljes\u00edtm\u00e9nnyel. A projekt c\u00e9lja, hogy teljes \u00e9rt\u00e9k\u0171 alternat\u00edv\u00e1ja legyen a hagyom\u00e1nyos shell-eknek, lehet\u0151v\u00e9 t\u00e9ve a megl\u00e9v\u0151 szkriptek futtat\u00e1s\u00e1t \u00e9s a .bashrc haszn\u00e1lat\u00e1t szinte v\u00e1ltoztat\u00e1s n\u00e9lk\u00fcl. Ez a verzi\u00f3 t\u00f6bb h\u00f3nap munk\u00e1j\u00e1nak \u00e9s t\u00f6bb mint 200 egyes\u00edtett pull request-nek az eredm\u00e9nye, jelent\u0151sen el\u0151rehaladva a shell teljes \u00e9rt\u00e9k\u0171 Bash \u00e9s POSIX-kompatibilis k\u00f6rnyezetek helyettes\u00edt\u00e9se fel\u00e9.<\/p>\n<p>A fejleszt\u00e9si ir\u00e1nyvonalak ebben a kiad\u00e1sban:<\/p>\n<ul>\n<li>Bash kompatibilit\u00e1s: added set -e, set -u, pipefail, failglob, ERR kezel\u0151, koprocesszorok \u00e9s sok m\u00e1s;<\/li>\n<li>megb\u00edzhat\u00f3s\u00e1g: jav\u00edtva a kiv\u00e9telkezel\u00e9s \u2013 z\u00e1rt csatorn\u00e1k, hib\u00e1s kimenet, nem-UTF8 t\u00f6rt\u00e9nelem \u00e9s egy\u00e9b;<\/li>\n<li>platformok: kib\u0151v\u00edtett t\u00e1mogat\u00e1s macOS-re (bel\u00e9p\u00e9si shell-k\u00e9nt val\u00f3 m\u0171k\u00f6d\u00e9s), jav\u00edtott f\u00e1jlkezel\u00e9s Windows, FreeBSD, Android \u00e9s 32 bites rendszerek alatt;<\/li>\n<li>interaktivit\u00e1s: opcion\u00e1lis TOML-konfigur\u00e1ci\u00f3k, preexec\/precmd hookok hozz\u00e1ad\u00e1sa, jav\u00edtott readline makr\u00f3k t\u00e1mogat\u00e1sa \u00e9s m\u00e1s.<\/li>\n<\/ul>\n<h4>A Bash-kompatibilit\u00e1s kulcsfontoss\u00e1g\u00fa fejleszt\u00e9sei<\/h4>\n<p>A verzi\u00f3 legfontosabb fejleszt\u00e9sei k\u00f6z\u00e9 tartozik a Bash lehet\u0151s\u00e9geinek jelent\u0151s b\u0151v\u00edt\u00e9se. <strong>Hiba kezel\u00e9s<\/strong>:<\/p>\n<ul>\n<li>set -e (errexit) \u2013 azonnali kil\u00e9p\u00e9s hiba eset\u00e9n;<\/li>\n<li>set -u (nounset) \u2013 hiba a nem bejelentett v\u00e1ltoz\u00f3k haszn\u00e1latakor;<\/li>\n<li>pipefail \u2013 a cs\u0151 kimeneti k\u00f3dj\u00e1t az utols\u00f3 kudarcot vallott parancs hat\u00e1rozza meg;<\/li>\n<li>failglob \u2013 a glob kifejez\u00e9shez val\u00f3 egyez\u0151s\u00e9g hi\u00e1nya most hib\u00e1t okoz.<\/li>\n<\/ul>\n<p><strong>Traps \u00e9s koprocesszorok<\/strong>:<\/p>\n<ul>\n<li>ERR kezel\u0151 \u2013 parancsok futtat\u00e1sa hiba eset\u00e9n;<\/li>\n<li>kocoprocok (coproc) \u2013 k\u00e9tir\u00e1ny\u00fa kommunik\u00e1ci\u00f3val rendelkez\u0151 h\u00e1tt\u00e9rfolyamatok ind\u00edt\u00e1sa.<\/li>\n<\/ul>\n<p><strong>Be\u00e9p\u00edtett parancsok<\/strong>:<\/p>\n<ul>\n<li>jav\u00edtott\u00e1k sok aritmetikai konstrukci\u00f3 kezel\u00e9s\u00e9t, bele\u00e9rtve a magas alap\u00fa liter\u00e1lokat, a t\u00falcsordul\u00e1sokat \u00e9s a hozz\u00e1rendel\u00e9si oper\u00e1torokat;<\/li>\n<li>jav\u00edt\u00e1sok \u00e9s fejleszt\u00e9sek \u00e9rintett\u00e9k a be\u00e9p\u00edtett parancsokat: caller, read, getopts, printf \u00e9s m\u00e1sok.<\/li>\n<\/ul>\n<h4>Platformt\u00e1mogat\u00e1s kiterjeszt\u00e9se:<\/h4>\n<p>A v0.4.0 kiad\u00e1s a shellt sz\u00e9lesebb spektrum\u00fa eszk\u00f6z\u00f6k\u00f6n teszi el\u00e9rhet\u0151v\u00e9:<\/p>\n<ul>\n<li>macOS: jav\u00edtott\u00e1k a probl\u00e9m\u00e1t, ami miatt a shell a bel\u00e9p\u00e9skor akadt. Most a brush haszn\u00e1lhat\u00f3 bel\u00e9p\u00e9si shell-k\u00e9nt;<\/li>\n<li>Windows: fejleszt\u00e9sek a f\u00e1jlkezel\u00e9sben, hozz\u00e1adva a \/dev\/null emul\u00e1ci\u00f3t, amely jelent\u0151sen n\u00f6veli a haszn\u00e1lhat\u00f3s\u00e1got Windows alatt;<\/li>\n<li>A FreeBSD \u00e9s Android: t\u00e1mogatott a build ezekhez a platformokhoz;<\/li>\n<\/ul>\n<h4>Interakt\u00edv lehet\u0151s\u00e9gek \u00e9s API<\/h4>\n<ul>\n<li><strong>Konfigur\u00e1ci\u00f3<\/strong>: hozz\u00e1adva a TOML-konfigf\u00e1jl opcion\u00e1lis t\u00e1mogat\u00e1sa (~\/.config\/brush\/config.toml) a brush-specifikus be\u00e1ll\u00edt\u00e1sokhoz;<\/li>\n<li><strong>Testreszab\u00e1s<\/strong>: implement\u00e1lva a zsh preexec\/precmd hook st\u00edlusok (k\u00eds\u00e9rleti flag m\u00f6g\u00f6tt), hasznos az egyedi promptok \u00e9s id\u0151m\u00e9r\u0151 eszk\u00f6z\u00f6k l\u00e9trehoz\u00e1s\u00e1hoz;<\/li>\n<li><strong>API fejleszt\u0151knek<\/strong>: a Shell t\u00edpusa most param\u00e9terezhet\u0151 kiterjeszt\u00e9sekkel (ShellExtensions), lehet\u0151v\u00e9 t\u00e9ve a fejleszt\u0151k sz\u00e1m\u00e1ra, hogy saj\u00e1t be\u00e9p\u00edtett parancsokat adjanak hozz\u00e1 \u00e9s m\u00f3dos\u00edts\u00e1k a v\u00e1ltoz\u00f3k viselked\u00e9s\u00e9t a projekt forks n\u00e9lk\u00fcl;<\/li>\n<li><strong>Vegyes<\/strong>:\n<ul> <noindex><\/p>\n<li>jav\u00edtott readline makr\u00f3 t\u00e1mogat\u00e1s a <a rel=\"nofollow\" href=\"https:\/\/github.com\/starship\/starship\">starship<\/a>, <a rel=\"nofollow\" href=\"https:\/\/atuin.sh\/\">atuin<\/a> \u00e9s <a rel=\"nofollow\" href=\"https:\/\/github.com\/junegunn\/fzf\">fzf (github.com)<\/a>;<\/li>\n<p><\/noindex> <\/p>\n<li>hozz\u00e1adott AST \u00e9s shell \u00e1llapot soros\u00edt\u00e1si lehet\u0151s\u00e9gek a serde-on kereszt\u00fcl;<\/li>\n<li>most a brush-parser \u00e9s a brush-core funkci\u00f3k el\u00e9rhet\u0151k a serde k\u00e9pess\u00e9gekkel az AST \u00e9s shell \u00e1llapot soros\u00edt\u00e1s\u00e1ra.<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p>Forr\u00e1s: <a \ncontent=\"nofollow\" rel=\"nofollow\" href=\"https:\/\/www.linux.org.ru\/news\/opensource\/18282635\">linux.org.ru<\/a><\/p>","protected":false,"gt_translate_keys":[{"key":"rendered","format":"html"}]},"excerpt":{"rendered":"<p>Brush &ndash; \u044d\u0442\u043e \u043a\u043e\u043c\u0430\u043d\u0434\u043d\u0430\u044f \u043e\u0431\u043e\u043b\u043e\u0447\u043a\u0430, \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u043d\u0430\u044f \u043d\u0430 \u044f\u0437\u044b\u043a\u0435 Rust, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0441\u043e\u0447\u0435\u0442\u0430\u0435\u0442 \u0441\u043e\u0432\u043c\u0435\u0441\u0442\u0438\u043c\u043e\u0441\u0442\u044c \u0441 POSIX \u0438 Bash \u0441 \u0433\u0430\u0440\u0430\u043d\u0442\u0438\u044f\u043c\u0438 \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e\u0441\u0442\u0438 \u043f\u0430\u043c\u044f\u0442\u0438 \u0438 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c\u044e. \u041f\u0440\u043e\u0435\u043a\u0442 \u043d\u0430\u0446\u0435\u043b\u0435\u043d \u043d\u0430 \u0442\u043e, \u0447\u0442\u043e\u0431\u044b \u0441\u0442\u0430\u0442\u044c \u043f\u043e\u043b\u043d\u043e\u0446\u0435\u043d\u043d\u043e\u0439 \u0430\u043b\u044c\u0442\u0435\u0440\u043d\u0430\u0442\u0438\u0432\u043e\u0439 \u0442\u0440\u0430\u0434\u0438\u0446\u0438\u043e\u043d\u043d\u044b\u043c \u043e\u0431\u043e\u043b\u043e\u0447\u043a\u0430\u043c, \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u044f \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0442\u044c \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0435 \u0441\u043a\u0440\u0438\u043f\u0442\u044b \u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c .bashrc \u043f\u0440\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u0431\u0435\u0437 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0439. \u042d\u0442\u0430 \u0432\u0435\u0440\u0441\u0438\u044f \u043e\u0431\u044a\u0435\u0434\u0438\u043d\u044f\u0435\u0442 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043c\u0435\u0441\u044f\u0446\u0435\u0432 \u0440\u0430\u0431\u043e\u0442\u044b \u0438 \u0431\u043e\u043b\u0435\u0435 200 \u043e\u0431\u044a\u0435\u0434\u0438\u043d\u0451\u043d\u043d\u044b\u0445 \u043f\u0443\u043b\u043b-\u0440\u0435\u043a\u0432\u0435\u0441\u0442\u043e\u0432, \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u043f\u0440\u043e\u0434\u0432\u0438\u0433\u0430\u044f [&hellip;]<\/p>\n","protected":false,"gt_translate_keys":[{"key":"rendered","format":"html"}]},"author":8,"featured_media":170398,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[702],"tags":[],"class_list":["post-170397","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-news"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 5.0.3 - aioseo.com -->\n\t<meta name=\"description\" content=\"Brush \u2013 \u044d\u0442\u043e \u043a\u043e\u043c\u0430\u043d\u0434\u043d\u0430\u044f \u043e\u0431\u043e\u043b\u043e\u0447\u043a\u0430, \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u043d\u0430\u044f \u043d\u0430 \u044f\u0437\u044b\u043a\u0435 Rust, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0441\u043e\u0447\u0435\u0442\u0430\u0435\u0442.\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"Erik Peterson\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/prohoster.info\/hu\/blog\/news\/brush-v0-4-0\" \/>\n\t\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 5.0.3\" \/>\n\t\t<meta property=\"og:locale\" content=\"hu_HU\" \/>\n\t\t<meta property=\"og:site_name\" content=\"ProHoster | \u041a\u0443\u043f\u0438\u0442\u044c \u043d\u0430\u0434\u0435\u0436\u043d\u044b\u0439 \u0445\u043e\u0441\u0442\u0438\u043d\u0433 \u0434\u043b\u044f \u0441\u0430\u0439\u0442\u043e\u0432 \u0441 \u0437\u0430\u0449\u0438\u0442\u043e\u0439 \u043e\u0442 DDoS, VPS VDS \u0441\u0435\u0440\u0432\u0435\u0440\u044b\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"\ud83e\udd47Brush v0.4.0 | ProHoster\" \/>\n\t\t<meta property=\"og:description\" content=\"Brush \u2013 \u044d\u0442\u043e \u043a\u043e\u043c\u0430\u043d\u0434\u043d\u0430\u044f \u043e\u0431\u043e\u043b\u043e\u0447\u043a\u0430, \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u043d\u0430\u044f \u043d\u0430 \u044f\u0437\u044b\u043a\u0435 Rust, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0441\u043e\u0447\u0435\u0442\u0430\u0435\u0442.\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/prohoster.info\/hu\/blog\/news\/brush-v0-4-0\" \/>\n\t\t<meta property=\"og:image\" content=\"https:\/\/prohoster.info\/wp-content\/uploads\/2021\/11\/logo-350.jpg\" \/>\n\t\t<meta property=\"og:image:secure_url\" content=\"https:\/\/prohoster.info\/wp-content\/uploads\/2021\/11\/logo-350.jpg\" \/>\n\t\t<meta property=\"og:image:width\" content=\"350\" \/>\n\t\t<meta property=\"og:image:height\" content=\"350\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2026-05-04T22:24:38+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2026-05-04T22:24:38+00:00\" \/>\n\t\t<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/prohoster\" \/>\n\t\t<meta property=\"article:author\" content=\"https:\/\/www.facebook.com\/prohoster\" \/>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"\ud83e\udd47Brush v0.4.0 | ProHoster","description":"A Brush egy Rust nyelven \u00edrt parancssori fel\u00fclet, amely \u00f6tv\u00f6zi.","canonical_url":"https:\/\/prohoster.info\/hu\/blog\/news\/brush-v0-4-0","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":null,"og:locale":"hu_HU","og:site_name":"ProHoster | \u041a\u0443\u043f\u0438\u0442\u044c \u043d\u0430\u0434\u0435\u0436\u043d\u044b\u0439 \u0445\u043e\u0441\u0442\u0438\u043d\u0433 \u0434\u043b\u044f \u0441\u0430\u0439\u0442\u043e\u0432 \u0441 \u0437\u0430\u0449\u0438\u0442\u043e\u0439 \u043e\u0442 DDoS, VPS VDS \u0441\u0435\u0440\u0432\u0435\u0440\u044b","og:type":"article","og:title":"\ud83e\udd47Brush v0.4.0 | ProHoster","og:description":"Brush \u2013 \u044d\u0442\u043e \u043a\u043e\u043c\u0430\u043d\u0434\u043d\u0430\u044f \u043e\u0431\u043e\u043b\u043e\u0447\u043a\u0430, \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u043d\u0430\u044f \u043d\u0430 \u044f\u0437\u044b\u043a\u0435 Rust, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0441\u043e\u0447\u0435\u0442\u0430\u0435\u0442.","og:url":"https:\/\/prohoster.info\/hu\/blog\/news\/brush-v0-4-0","og:image":"https:\/\/prohoster.info\/wp-content\/uploads\/2021\/11\/logo-350.jpg","og:image:secure_url":"https:\/\/prohoster.info\/wp-content\/uploads\/2021\/11\/logo-350.jpg","og:image:width":350,"og:image:height":350,"article:published_time":"2026-05-04T22:24:38+00:00","article:modified_time":"2026-05-04T22:24:38+00:00","article:publisher":"https:\/\/www.facebook.com\/prohoster","article:author":"https:\/\/www.facebook.com\/prohoster"},"aioseo_meta_data":[],"gt_translate_keys":[{"key":"link","format":"url"}],"_links":{"self":[{"href":"https:\/\/prohoster.info\/hu\/wp-json\/wp\/v2\/posts\/170397","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/prohoster.info\/hu\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/prohoster.info\/hu\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/prohoster.info\/hu\/wp-json\/wp\/v2\/users\/8"}],"replies":[{"embeddable":true,"href":"https:\/\/prohoster.info\/hu\/wp-json\/wp\/v2\/comments?post=170397"}],"version-history":[{"count":0,"href":"https:\/\/prohoster.info\/hu\/wp-json\/wp\/v2\/posts\/170397\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/prohoster.info\/hu\/wp-json\/wp\/v2\/media\/170398"}],"wp:attachment":[{"href":"https:\/\/prohoster.info\/hu\/wp-json\/wp\/v2\/media?parent=170397"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/prohoster.info\/hu\/wp-json\/wp\/v2\/categories?post=170397"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/prohoster.info\/hu\/wp-json\/wp\/v2\/tags?post=170397"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}