mirror of
https://github.com/asciinema/asciinema.git
synced 2026-04-24 23:45:50 +03:00
[GH-ISSUE #219] asciinema changes shell behaviour #777
Labels
No labels
bug
compatibility
feature request
fit for beginners
help wanted
hosting
idea
improvement
packaging
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/asciinema#777
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @ml0renz0 on GitHub (Aug 24, 2017).
Original GitHub issue: https://github.com/asciinema/asciinema/issues/219
This command gets stuck only when running inside asciinema:
cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 40 | head -n 1It works perfectly under a shell.
@ku1ik commented on GitHub (Aug 31, 2017):
That's interesting. I am able to reproduce it on the latest version (1.4).
🤔
@markasoftware commented on GitHub (Oct 17, 2017):
I have experienced the same issue with
tr -dc a-zA-Z0-9 < /dev/urandom | head -c 20. It's very strange, doing head directly on /dev/urandom works fine, and doing tr without piping output also works fine (EDIT: not exactly, sometimes i can get head to fail actually). As I understand it this is a common way to get random values in a shell script, so this really should be fixed.@markasoftware commented on GitHub (Oct 18, 2017):
This does not appear to occur in certain shells. It does occur in Bash, but
asciinema rec -c zshworks without error. Zsh is mostly compatible with Bash, so in most situations this can be worked around by simply recording a zsh session.@ku1ik commented on GitHub (Oct 18, 2017):
Thanks for the update @markasoftware. I'm not sure what exactly is happening here, but I suspect this has something to do with our PTY recorder: https://github.com/asciinema/asciinema/blob/develop/asciinema/pty_recorder.py
@ku1ik commented on GitHub (Nov 26, 2017):
I'm no longer able to reproduce that on current
developbranch. Can you try @markasoftware and @mlorenzo-stratio ? Here's how to run it from git: https://github.com/asciinema/asciinema#running-latest-version-from-source-code-checkout@markasoftware commented on GitHub (Nov 26, 2017):
Still does not work for me on develop branch. Behavior is the same as before.
@ku1ik commented on GitHub (Dec 2, 2017):
I think this may be related: https://github.com/ansible/ansible-modules-core/issues/2305#issuecomment-164170222
@ku1ik commented on GitHub (Dec 2, 2017):
If it's about signal handling (like mentioned in the above linked comment) we may be doing something wrong here:
github.com/asciinema/asciinema@1e5e20b213/asciinema/pty_recorder.py (L100-L109)@luckydenis commented on GitHub (May 7, 2019):
Good afternoon. I'm on version 2.0.2 to reproduce failed. Already fixed?
@ku1ik commented on GitHub (Feb 20, 2022):
This seems to be fixed now, cannot reproduce anymore.