Git Product home page Git Product logo

Comments (10)

akinomyoga avatar akinomyoga commented on May 20, 2024 1

ご報告ありがとうございます! こちらでいろいろ試したところ Bash 3.2 で C-d で抜けようとした時に類似の現象が再現するようでした。調べてみます。

from ble.sh.

Kiikurage avatar Kiikurage commented on May 20, 2024 1

from ble.sh.

Kiikurage avatar Kiikurage commented on May 20, 2024 1

バージョンを確認しました

GNU bash, version 3.2.57(1)-release (x86_64-apple-darwin18)

です

from ble.sh.

Kiikurage avatar Kiikurage commented on May 20, 2024 1

また、bashのバージョンを上げたところとりあえず問題は発生しなくなりました。

from ble.sh.

Kiikurage avatar Kiikurage commented on May 20, 2024 1

ご対応くださりありがとうございます。
d4b39b3 をビルドして使ってみたところ、GNU bash, version 3.2.57(1)-release (x86_64-apple-darwin18) で問題が発生しなくなっていることを確認しました。
ありがとうございます。

from ble.sh.

akinomyoga avatar akinomyoga commented on May 20, 2024

対応に時間がかかっていて申し訳ありません。別の簡単そうに思った Issue #16 の方を先に片付けようと思ったのですが、そちらで泥沼に陥ってしまったのでまだ対応に時間がかかりそうです。

先にこちらで再現している問題とそちらで発生している問題が同じかどうか確認させていただきたく思います。こちらの手元では Bash 3.0-3.2 の中で Bash 3.1-3.2 を起動した時に問題が発生しています。Bash 3.0-3.2, 4.0-4.4, 5.0β の中で Bash 3.0, 4.0-4.4, 5.0β を起動した時には再現していません。そちらでお使いの Bash のバージョンは 3.1 または 3.2 という事で問題ないでしょうか。

from ble.sh.

akinomyoga avatar akinomyoga commented on May 20, 2024

確かめていただきありがとうございます! ということはこちらで再現しているのと同じ問題ですね。わざわざ新しい Bash まで試していただいてありがとうございます (実の所、Bash 3.2 以前は機能が少ないので ble.sh は結構無理をした実装になっており動作が遅いのです。従って本当は Bash 4.0 以降が推奨なのでした)。

この問題に関しては #16 が終わってから Bash の動作を調べて対策いたしますね。

from ble.sh.

akinomyoga avatar akinomyoga commented on May 20, 2024
  • d4b39b3 問題の特定に時間がかかりましたが直しました (結局この1行の修正でした)。

Bash の振る舞いが解せないので調べてみると Bash 4.0 の修正で挙げられていた以下のバグを踏んでいました。リダイレクトを作る前に明示的にファイルディスクリプタを閉じるように対策しました。

------------------------------------------------------------------------------
This document details the changes between this version, bash-4.0-alpha,
and the previous version, bash-3.2-release.

1.  Changes to Bash

(中略)

ee. Fixed a bug that caused bash to close file descriptors greater than 10
    when they were used in redirections.

from ble.sh.

akinomyoga avatar akinomyoga commented on May 20, 2024

@Kiikurage さま、こちら修正に時間がかかってしまいましたが、問題が発生しなくなっているか確認をお願いしてもよろしいでしょうか。お手数をおかけしますがよろしくおねがいいたします。

from ble.sh.

akinomyoga avatar akinomyoga commented on May 20, 2024

早速ご確認いただきありがとうございます! こちらの Issue は閉じさせていただきますね

from ble.sh.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.