[PR #38] [MERGED] Fix issue with 'sed' command on Mac OS X. #369

Closed
opened 2026-02-25 20:33:32 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/asciinema/asciinema/pull/38
Author: @caseyscarborough
Created: 10/1/2013
Status: Merged
Merged: 10/2/2013
Merged by: @ku1ik

Base: masterHead: patch-1


📝 Commits (1)

  • 9784e98 Fix issue with 'sed' command on Mac OS X.

📊 Changes

1 file changed (+5 additions, -1 deletions)

View changed files

📝 install (+5 -1)

📄 Description

When running the script on Mac OS X, the sed command expects a parameter with the -i flag that specifies the backup extension. In this case, no backup is needed, so it can be a blank string.

The following is the error:

Installing to /usr/local/bin/asciinema...
sed: 1: "/usr/local/bin/asciinema": extra characters at the end of l command
Oopsie, something unexpected happened.

The following article explains the issue in depth:
sed in-place editing (-i) difference on Mac OS X

This fixes #36.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/asciinema/asciinema/pull/38 **Author:** [@caseyscarborough](https://github.com/caseyscarborough) **Created:** 10/1/2013 **Status:** ✅ Merged **Merged:** 10/2/2013 **Merged by:** [@ku1ik](https://github.com/ku1ik) **Base:** `master` ← **Head:** `patch-1` --- ### 📝 Commits (1) - [`9784e98`](https://github.com/asciinema/asciinema/commit/9784e9899b859edf57ea72a91301d50111e54fd9) Fix issue with 'sed' command on Mac OS X. ### 📊 Changes **1 file changed** (+5 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `install` (+5 -1) </details> ### 📄 Description When running the script on Mac OS X, the sed command expects a parameter with the -i flag that specifies the backup extension. In this case, no backup is needed, so it can be a blank string. The following is the error: ``` Installing to /usr/local/bin/asciinema... sed: 1: "/usr/local/bin/asciinema": extra characters at the end of l command Oopsie, something unexpected happened. ``` The following article explains the issue in depth: [sed in-place editing (-i) difference on Mac OS X](http://blog.mpdaugherty.com/2010/05/27/difference-with-sed-in-place-editing-on-mac-os-x-vs-linux/) This fixes #36. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-25 20:33:32 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/asciinema#369
No description provided.