News for hackers. Stuff that matters.
Re:Show HN: Transductive regular expressions for text editing by simlevesque on Friday February 07, 2025 @01:51PM (#42976094)
I ran the installation lines and got this error:

    make && sh test.sh
    cc -std=c99 -Wall -Wextra -Wpedantic -o2 trre_nft.c -o trre
    cc -std=c99 -Wall -Wextra -Wpedantic -o2 trre_dft.c -o trre_dft
    test.sh: 14: Syntax error: "(" unexpected
Using bash fixed it.

Then I ran one of the generator examples:

    echo '' | trre -g ':(0|1){,3}?'
And I got this error:

    ./trre: invalid option -- 'g'
    Usage: ./trre [-d] [-m] expr [file]
Re:Show HN: Transductive regular expressions for text editing by c0nstantine on Friday February 07, 2025 @02:29PM (#42976501)
Are you using MAC? For tests please try:

$ make && bash test.sh

with 'bash' instead.

For the second part it is a bug in the README. Thank you for pointing this out! I had to be more careful before the publication. Fixed. Try '-ma' flags instead.

$echo '' | trre -ma ':(0|1){,3}?'

Re:Show HN: Transductive regular expressions for text editing by simlevesque on Saturday February 08, 2025 @01:05PM (#42984781)
I'm using Linux.
Re:Show HN: Transductive regular expressions for text editing by c0nstantine on Monday February 10, 2025 @02:03AM (#42997642)
Did it solve the problem? I guess the issue is the process substitution construction of bash "<()". Not all shells support this.