[GH-ISSUE #36] sed replacement fails on OS X to fix python2 reference. Error: command a expects \ followed by text #30

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

Originally created by @gregelin on GitHub (Sep 22, 2013).
Original GitHub issue: https://github.com/asciinema/asciinema/issues/36

The sed replace section added in commit e687422 throws error, "command a expects \ followed by text" on OS X (10.7.x, 10.8.x).

OS X requires an extension to be defined with when using -i flag.

$SUDO sed -i '.orig' '1 s/python2/python/' $TARGET
Originally created by @gregelin on GitHub (Sep 22, 2013). Original GitHub issue: https://github.com/asciinema/asciinema/issues/36 The sed replace section added in commit e687422 throws error, "command a expects \ followed by text" on OS X (10.7.x, 10.8.x). OS X requires an extension to be defined with when using `-i` flag. ``` bash $SUDO sed -i '.orig' '1 s/python2/python/' $TARGET ```
kerem closed this issue 2026-02-25 20:32:19 +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#30
No description provided.