Что означает плюс «+» в GTK + и какова его история?

Ответ Гленна, конечно, очень хороший, но в этом случае я бы использовал awk , чтобы сгенерировать командные строки, а затем направить результаты в оболочку. Поскольку awk является частью POSIX, возможно, это будет действительным решением.

awk -F'[, ]+' '{print "rectang -cs", $1, $2, $3, $4}' table.csv | sh

или, назначив первое поле первому полю, чтобы инициировать перерасчет разделителя полей:

awk -F'[, ]+' '$1=$1{print "rectang -cs", $0}' table.csv | sh

Альтернативно, с аналогичным шаблоном:

sed -e 's/^/rectang -cs /' -e 's/, */ /g' table.csv | sh

Конечно, во время экспериментов можно просто посмотреть на команды, и только если вы действительно уверены, вы направляете его в ш .

-121--185217-

apropos timespec .

Выполняется поиск "timespec" на всех страницах "man".

-121--49945-

Я обычно возвращаюсь к гуглу в таких обстоятельствах, но попробуйте использовать man -K .

Со страницы человека:

-k, --apropos

    Эквивалентно apropos. Найдите в кратких описаниях страниц вручную ключевые слова и просмотрите все совпадения. Для получения подробной информации см. apropos (1).

-K, --global-apropos

    Поиск текста на всех страницах руководства. Это поиск грубой силы, и, вероятно, займет некоторое время; если можно, следует указать раздел, чтобы уменьшить количество страниц, которые необходимо искать. Поисковые термины могут быть простыми строками (по умолчанию) или регулярными выражениями, если используется параметр --regex.
7
09.03.2018, 23:58
3 ответа

Они добавили +, когда переработали оригиналGTK(Gimp ToolKitна основеMotif)для объектно-ориентированного (что-то вроде GTKна стериодах I думаю...)
См. также страницу википедии в истории версий GIMP.

7
27.01.2020, 20:15

Le envié un correo electrónico a Peter Mattis (co -creador de GTK/GTK+ )con esta pregunta y su respuesta fue:

GTK was the first version of the toolkit used in pre-1.0 versions of the GIMP. At some point, the architectural limitations were revealed and I rewrote and renamed it as GTK+. This too was used in pre-1.0 versions of the GIMP. I don't believe any project outside of the GIMP used GTK-(no-plus). Why a "+" instead of a version number? No reason other than whim.

8
27.01.2020, 20:15

06.02.2019 -Объявление -Проект переименовывается с GTK+ в GTK.

Hi all;

tl;dr: GTK is GTK, not GTK+. The documentation has been updated, and the pkg-config file for the future 4.0 major release is now called "gtk4"

over the years, we had discussions about removing the "+" from the project name. The "plus" was added to "GTK" once it was moved out of the GIMP sources tree and the project gained utilities like GLib and the GTK type system, in order to distinguish it from the previous, in-tree version. Very few people are aware of this history, and it's kind of confusing from the perspective of both newcomers and even expert users; people join the wrong IRC channel, the URLs on wikis are fairly ugly, etc.

With the move to Git, years ago, we had to add a couple of hacks to allow for the "plus" to stay in the repository browsing UI; those hacks were dropped once we moved to GitLab. We discussed again during IRC meetings and hackfests whether to drop the "plus", and we finally decided to do so.

With the work in the master branch towards the 4.0 release, it's finally time to say goodbye to the "plus" in "GTK+".

The documentation is updated so that the project in named consistently.

The removal of the plus has a side effect on the name of the pkg-config file for GTK 4; additionally, since we don't break API across the same major version, having a fully qualified major.minor version in the pkg-config file is redundant. This means that the pkg-config file for GTK 4 is going to be called "gtk4".

Incidentally, the IRC channel on irc.gnome.org is now called "#gtk"; there's a re-direct in place, so if you join "#gtk+" you'll end up in the right place.

Ciao,
Emmanuele.

источник:https://mail.gnome.org/archives/gtk-devel-list/2019-February/msg00000.html

Thanks for moving this along! It's good to see the GTK name finally get less confusing and easier to talk about!

But to clarify the history, the "+" predates the point when GTK was moved out of the GIMP tree. Every single version of GTK with publicly released sources was called GTK+. As I understand it, Peter Mattis added the + to mark a change from a very early version that was structured more like Xt/Motif, to a version that had a fuller type system with inheritance.

Owen

источник:https://mail.gnome.org/archives/gtk-devel-list/2019-February/msg00008.html

4
27.01.2020, 20:15

Теги

Похожие вопросы