Skip to content

Sed inline parameter error on macOS #82

@jido

Description

@jido

The makefile uses sed -i, which requires an extension parameter on macOS and on FreeBSD.

Error when running make all:

Generating the parser, this may take some time...
jison --outfile TeXZilla-web.js --module-type js --parser-type lalr TeXZilla.jison TeXZilla.jisonlex
sed -i "s|\\\\b)/|)/|g" TeXZilla-web.js # jison issue 204
sed: 1: "TeXZilla-web.js
": invalid command code T
make: *** [TeXZilla-web.js] Error 1

To correct that, edit the makefile to add "" after -i on each line where it is used:

sed -i "" "s|\\\\b)/|)/|g" $@ # jison issue 204

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions