so I tried out in addition to your y/n options adding a 'v' option to view the text of the license and an 'o' option to add only the current addon without accepting other addons with the same license statement.

Nice! I guess we could organize a day where volunteers on this forum would take care of a few pages (whose numbers are in the interval in argument of 'pop-addons'). However, I do not really know how to add add-ons on https://trisquel.info/en/browser/addons and it would be nice to have 'pop-addons' check whether the add-on is already in Abrowser's catalog.

I accept it and is never recognized as having already been accepted.

That is because the backslash is the escape character for 'grep' which is given the license name to search in the accept/reject files. The two 'grep -qx "$license"' in free-addons should be changed into 'fgrep -qx "$license"' so that "$license" is seen as a fixed string.

That said, showing the unicode "\u002F" instead of "/"s not nice and "| sed 's/\\u002F/\//g'" could be appended to grep -o '"license":{[^}]*,"name":"[^"]*' $dir/addons/$a | sed -n '1 s/.*"//p' to only treat that case (I do not not know if there are others).

Reply via email to