Hacker News 의견
  • We've implemented many common commands and features like globbing, environment variables, redirection, piping, and more.

    • 새로운 쉘 구현이 일반적인 명령어와 기능들(글로빙, 환경 변수, 리다이렉션, 파이핑 등)을 포함하고 있음.
    • 하지만, 기존 쉘과 coreutils 구현과의 호환성에 대한 확신이 부족함.
    • POSIX 표준이나 Bourne 쉘과의 호환성을 목표로 하는지, GNU 확장 기능의 지원 여부가 불분명함.
    • 시스템에 GNU coreutils가 있을 때의 상황과 향후 내장 명령어 추가 시 예상치 못한 변경이 발생할 수 있는지에 대한 세부 사항이 부족함.
    • ZShell과 같은 Bourne 호환 쉘을 이 쉘로 교체하는 것은 대부분의 상황에서 바람직하지 않음을 지적함.
    • JS 생태계에서는 이미 다양한 쉘과 호환되는 명령어를 작성해야 하므로, Bourne 호환 쉘의 유용한 부분 집합을 표준화하는 것이 대부분의 플랫폼에서 이미 작동하는 것과 거의 100% 호환되면서도 모든 플랫폼에서 의도한 대로 작동하게 만들 수 있음.
  • Love that bun just implements anything that could be useful.

    • Bun이 유용할 수 있는 모든 것을 구현한다는 점을 긍정적으로 평가함.
  • This looks exactly like zx by Google. And that's probably a good thing.

    • 이 쉘 구현이 Google의 zx와 매우 유사해 보임. 이는 좋은 일일 수 있음.
  • $ hyperfine --warmup 3 'bash -c "echo hello"' 'sh -c "echo hello"' -N

    • Arch Linux에서 /bin/sh가 bash로의 심볼릭 링크이기 때문에 실제로 동일한 것을 측정하고 있음을 지적함.
    • Debian과 같은 시스템에서는 /bin/sh가 dash로, bash보다 시작과 일반적인 성능에서 몇 배 더 빠름.
  • I work on Bun - happy to answer any questions/feedback

    • Bun 개발자로서, 질문이나 피드백에 답변할 준비가 되어 있음.
  • This is neat, but a) it strikes me that what's powerful about shell scripting is that it lets you easily wrangle multiple independent utilities that don't need to be contained within the shell stdlib (maybe I'm missing something but I didn't see any emphasis on that), and b) that embedding a language as a string inside another language is very rarely a good UX.

    • 쉘 스크립팅의 강력한 점은 독립적인 유틸리티들을 쉽게 다룰 수 있다는 것인데, 이 새로운 쉘에서는 그러한 강조점을 찾기 어려움.
    • 한 언어를 다른 언어 내부의 문자열로 내장하는 것은 좋은 사용자 경험이 아님을 지적함.
    • 그러나 이 쉘의 이식성은 실제로 큰 문제를 해결함.
  • For something which works across all JS runtimes (Deno, Node) and achieves basically the same, check out the popular JS library Execa[1]. Works like a charm!

    • 모든 JS 런타임(Deno, Node)에서 작동하고 기본적으로 동일한 기능을 제공하는 Execa[1] JS 라이브러리를 추천함.
  • Another alternative is the ZX shell[2] JS library. Tho haven't tested it.

    • ZX shell[2] JS 라이브러리도 대안이 될 수 있음. 하지만 테스트는 해보지 않음.
  • I love Bun. I no longer use Node for development. Hardly any gotchas anymore. It's just faster all over. Especially bun test. Highly recommended. Thank you @Jarred!

    • Bun을 매우 좋아하며, 더 이상 개발에 Node를 사용하지 않음. 거의 문제가 없고, 전반적으로 더 빠름. 특히 bun test가 매우 빠름. 강력히 추천함.
  • I didn't know, but apparently you can execute a function in JS without parentheses using upticks (`), e.g:

    • JS에서 함수를 괄호 없이 역따옴표(`)를 사용하여 실행할 수 있음을 알게 됨. Bun도 쉘 명령어를 실행하기 위해 달러 기호($) 함수를 사용하는데, 이는 JS의 이상한 문법 마법 중 하나임.
  • Great, it's approaching the ergonomics of what Perl has offered for decades. And Perl still does it better.

    • 이 쉘은 수십 년 동안 Perl이 제공해온 인간공학에 접근하고 있음. 그리고 Perl이 여전히 더 잘함을 평가함.