metaclass: (Default)
metaclass ([personal profile] metaclass) wrote2011-09-11 11:08 pm

Выход из интерпретаторов и командные строки

Я в глубокой печали.
За вчера и сегодня мне пришлось пользоваться шестью интерпретаторами командной строки: F# interactive, Firebird isql, Firebird gsec, Postgresql psql, SQLite, bash и cmd.exe.

Я все понимаю, но пожалуйста, организуйте комитет по стандартизации стандарного набора команд: help и quit. Я очень заебался вспоминать, где я сейчас нахожусь, какая команда показывает хелп и какая команда позволяет выйти и каким количеством каких символов ее нужно терминировать.

Кроме того, я надеюсь, что тот, кто придумал getopt_long, а так же то, что 83% линуксовых утилит реагируют на ключ командной строки --help, тем самым искупил грехи свои и всех своих родственников в +-12 коленах, а тем, кто не соблюдают эту конвенцию, в аду псы будут лизать мозг смердящими языками через вырванные глаза.

[identity profile] berezovsky.livejournal.com 2011-09-11 08:22 pm (UTC)(link)
:-(((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((

[identity profile] aamonster.livejournal.com 2011-09-11 08:24 pm (UTC)(link)
Ребе, открою вам страшную тайну: в Mac OS X, хоть она и насквозь юниксовая, утилиты --help не понимают. Надо бы проверить на других BSD-системах, но нету под рукой.

[identity profile] aamonster.livejournal.com 2011-09-11 09:01 pm (UTC)(link)
Завтра проверю, если не забуду. Но по смутным воспоминаниям - два дефиса не понимает в принципе.

[identity profile] theiced.livejournal.com 2011-09-11 08:33 pm (UTC)(link)
потому что макос говно наверное?

[identity profile] aamonster.livejournal.com 2011-09-11 08:59 pm (UTC)(link)
Да нет, обычная операционка, в чём-то лучше других, в чём-то хуже.

(no subject)

[identity profile] theiced.livejournal.com - 2011-09-12 02:11 (UTC) - Expand

(no subject)

[identity profile] darkdrip.livejournal.com - 2011-09-12 04:25 (UTC) - Expand

(no subject)

[identity profile] sorhed.livejournal.com - 2011-09-12 08:39 (UTC) - Expand

(no subject)

[identity profile] dizel-by.livejournal.com - 2011-09-12 10:40 (UTC) - Expand

(no subject)

[identity profile] darkdrip.livejournal.com - 2011-09-12 13:43 (UTC) - Expand

(no subject)

[identity profile] maholet.livejournal.com - 2011-09-13 01:04 (UTC) - Expand

(no subject)

[identity profile] darkdrip.livejournal.com - 2011-09-12 13:44 (UTC) - Expand

(no subject)

[identity profile] sorhed.livejournal.com - 2011-09-12 13:47 (UTC) - Expand

(no subject)

[identity profile] kisa-i-osya.livejournal.com - 2011-09-13 19:24 (UTC) - Expand

(no subject)

[identity profile] aamonster.livejournal.com - 2011-09-12 07:04 (UTC) - Expand

(no subject)

[identity profile] theiced.livejournal.com - 2011-09-12 14:36 (UTC) - Expand

(no subject)

[identity profile] aamonster.livejournal.com - 2011-09-12 16:21 (UTC) - Expand

(no subject)

[identity profile] theiced.livejournal.com - 2011-09-12 16:22 (UTC) - Expand

(no subject)

[identity profile] aamonster.livejournal.com - 2011-09-12 16:24 (UTC) - Expand

(no subject)

[identity profile] theiced.livejournal.com - 2011-09-12 16:26 (UTC) - Expand

(no subject)

[identity profile] kisa-i-osya.livejournal.com - 2011-09-13 19:25 (UTC) - Expand

[identity profile] inhate.livejournal.com 2011-09-11 08:47 pm (UTC)(link)
Там юзерспейс в *BSD* уёбищниый, кто ж спорит. А уж в той BSD с который копипиздился OSX ИМХО и подавно. Интесно, там ls и du уже "-h" понимают?

[identity profile] aamonster.livejournal.com 2011-09-11 08:54 pm (UTC)(link)
-h - да, насколько я помню. Завтра на работе могу попроверять =)

[identity profile] vit-r.livejournal.com 2011-09-11 09:40 pm (UTC)(link)
В каком, пардон месте --help не понимают? Все утилиты спокойно реагируют на ключ.

[identity profile] aamonster.livejournal.com 2011-09-11 09:52 pm (UTC)(link)
В консоли, вестимо. OS X Lion. Кажется, даже ls --help не работал, ну и ещё какие-то.
Я что - я сам обалдел: думал, сейчас это во всех *nix.
Ключ -h работал, man имя_команды - тоже.

Завтра могу по конкретным командам отчитаться.

(no subject)

[identity profile] aamonster.livejournal.com - 2011-09-12 07:08 (UTC) - Expand

(no subject)

[identity profile] vit-r.livejournal.com - 2011-09-12 07:48 (UTC) - Expand

(no subject)

[identity profile] aamonster.livejournal.com - 2011-09-12 08:19 (UTC) - Expand

(no subject)

[identity profile] trueblacker.livejournal.com - 2011-09-12 08:58 (UTC) - Expand

[identity profile] sorhed.livejournal.com 2011-09-12 08:40 am (UTC)(link)
Смотря какие утилиты. Coreutils BSD-шные, они такого не умеют. А гит, например, гнутый, он умеет.

(no subject)

[identity profile] aamonster.livejournal.com - 2011-09-12 08:57 (UTC) - Expand

(no subject)

[identity profile] dizel-by.livejournal.com - 2011-09-12 10:43 (UTC) - Expand

(no subject)

[identity profile] sorhed.livejournal.com - 2011-09-12 10:56 (UTC) - Expand

(no subject)

[identity profile] dizel-by.livejournal.com - 2011-09-12 10:58 (UTC) - Expand

(no subject)

[identity profile] sorhed.livejournal.com - 2011-09-12 11:02 (UTC) - Expand

(no subject)

[identity profile] dizel-by.livejournal.com - 2011-09-12 11:10 (UTC) - Expand

(no subject)

[identity profile] sorhed.livejournal.com - 2011-09-12 11:11 (UTC) - Expand

(no subject)

[identity profile] sorhed.livejournal.com - 2011-09-12 11:05 (UTC) - Expand

(no subject)

[identity profile] dizel-by.livejournal.com - 2011-09-12 11:11 (UTC) - Expand

(no subject)

[identity profile] sorhed.livejournal.com - 2011-09-12 11:14 (UTC) - Expand

(no subject)

[identity profile] dizel-by.livejournal.com - 2011-09-12 11:15 (UTC) - Expand

(no subject)

[identity profile] sorhed.livejournal.com - 2011-09-12 11:18 (UTC) - Expand

(no subject)

[identity profile] dizel-by.livejournal.com - 2011-09-12 11:18 (UTC) - Expand

(no subject)

[identity profile] maholet.livejournal.com - 2011-09-13 01:09 (UTC) - Expand

(no subject)

[identity profile] aamonster.livejournal.com - 2011-09-12 16:03 (UTC) - Expand

[identity profile] http://users.livejournal.com/_slw/ 2011-09-11 08:45 pm (UTC)(link)
какая команда показывает хелп и какая команда позволяет выйти и каким количеством каких символов ее нужно терминировать.

^D

[identity profile] gds.livejournal.com 2011-09-11 09:13 pm (UTC)(link)
лиловая госпожа рассказывает, что в cmd ^D не работает как выход из оболочки.

(no subject)

[identity profile] hshhhhh.livejournal.com - 2011-09-11 21:30 (UTC) - Expand

(no subject)

[identity profile] gds.livejournal.com - 2011-09-11 21:45 (UTC) - Expand

(no subject)

[identity profile] hshhhhh.livejournal.com - 2011-09-11 21:52 (UTC) - Expand

(no subject)

[identity profile] gds.livejournal.com - 2011-09-11 22:18 (UTC) - Expand

(no subject)

[identity profile] metaclass.livejournal.com - 2011-09-12 04:47 (UTC) - Expand

(no subject)

[identity profile] gds.livejournal.com - 2011-09-12 08:43 (UTC) - Expand

(no subject)

[identity profile] gds.livejournal.com - 2011-09-12 09:35 (UTC) - Expand

(no subject)

[identity profile] gds.livejournal.com - 2011-09-12 09:41 (UTC) - Expand

(no subject)

[identity profile] gds.livejournal.com - 2011-09-12 09:54 (UTC) - Expand

(no subject)

[identity profile] gds.livejournal.com - 2011-09-12 10:08 (UTC) - Expand

(no subject)

[identity profile] gds.livejournal.com - 2011-09-12 10:15 (UTC) - Expand

(no subject)

[identity profile] gds.livejournal.com - 2011-09-12 10:18 (UTC) - Expand

(no subject)

[identity profile] gds.livejournal.com - 2011-09-12 10:22 (UTC) - Expand

(no subject)

[personal profile] alll - 2011-09-12 18:29 (UTC) - Expand

[identity profile] metaclass.livejournal.com 2011-09-12 04:47 am (UTC)(link)
F# - не работает.
isql - не работает
gsec - не работает
haskell(ghci) - работает
psql - не работает
cmd.exe - не работает
bash - работает.

(no subject)

[identity profile] inhate.livejournal.com - 2011-09-12 05:14 (UTC) - Expand

(no subject)

[identity profile] tzirechnoy.livejournal.com - 2011-09-12 07:41 (UTC) - Expand

[identity profile] aamonster.livejournal.com 2011-09-11 10:00 pm (UTC)(link)
Ещё, кстати, луч поноса авторам форумных движков, заменяющих два дефиса на длинное тире. Или тем, кто использует такие движки для IT-форумов.

[identity profile] inhate.livejournal.com 2011-09-12 05:16 am (UTC)(link)
Я б вообще ссылал в профилакторий имени Кащенко всех любителей использовать длинные тире, дефисы и кавычки-ёлочки где-либо за пределами тёминого ЖЖ. Спасибо большевикам, что поотменяли ненужные буквы.

(no subject)

[identity profile] alexandr0.livejournal.com - 2011-09-12 22:36 (UTC) - Expand

[identity profile] vaddimka.livejournal.com 2011-09-11 11:23 pm (UTC)(link)
я б еще заставил стандартизовать Alt+TAB Ctrl+C Ctrl+V и прочее
потому что в винде и линуксе одинаково, а в макоси изъебнулись и сделали через command (там где значек виндовс у обычных клав)
в итоге, во-первых, сначала возникает вопрос как это вообще нажимать, во-вторых, потом пальцы начинают путаться на винде и линуксах

[identity profile] usovalx.livejournal.com 2011-09-12 12:30 am (UTC)(link)
Это у тебя на хакинтоше от там где значёк виндовс. На родной клавиатуре он рядом с пробелом.

Вот как раз в том как сделаны и стандартизировани шорткаты mac os даёт фору и виндам и линуксу. Особенно майкрософт -- впилили на все "совместимые" клавиатуры пару новых кнопок но так и не придумали нахрена это надо.

(no subject)

[identity profile] usovalx.livejournal.com - 2011-09-12 00:32 (UTC) - Expand

(no subject)

[identity profile] usovalx.livejournal.com - 2011-09-12 00:32 (UTC) - Expand

(no subject)

[identity profile] vaddimka.livejournal.com - 2011-09-12 00:40 (UTC) - Expand

(no subject)

[identity profile] usovalx.livejournal.com - 2011-09-12 02:57 (UTC) - Expand

(no subject)

[identity profile] sorhed.livejournal.com - 2011-09-12 08:41 (UTC) - Expand

(no subject)

[identity profile] vaddimka.livejournal.com - 2011-09-12 21:14 (UTC) - Expand

(no subject)

[identity profile] sorhed.livejournal.com - 2011-09-12 08:47 (UTC) - Expand

(no subject)

[identity profile] vaddimka.livejournal.com - 2011-09-12 21:16 (UTC) - Expand

(no subject)

[identity profile] theiced.livejournal.com - 2011-09-12 02:13 (UTC) - Expand

(no subject)

[identity profile] usovalx.livejournal.com - 2011-09-12 02:53 (UTC) - Expand

(no subject)

[identity profile] theiced.livejournal.com - 2011-09-12 03:10 (UTC) - Expand

(no subject)

[identity profile] usovalx.livejournal.com - 2011-09-12 09:38 (UTC) - Expand

(no subject)

[identity profile] theiced.livejournal.com - 2011-09-12 14:38 (UTC) - Expand

(no subject)

[identity profile] usovalx.livejournal.com - 2011-09-12 15:29 (UTC) - Expand

(no subject)

[identity profile] theiced.livejournal.com - 2011-09-12 15:50 (UTC) - Expand

(no subject)

[identity profile] aamonster.livejournal.com - 2011-09-12 16:10 (UTC) - Expand

(no subject)

[identity profile] theiced.livejournal.com - 2011-09-12 16:14 (UTC) - Expand

(no subject)

[identity profile] aamonster.livejournal.com - 2011-09-12 16:23 (UTC) - Expand

(no subject)

[identity profile] theiced.livejournal.com - 2011-09-12 16:25 (UTC) - Expand

(no subject)

[identity profile] anatoly borodin - 2011-09-12 19:39 (UTC) - Expand

(no subject)

[identity profile] aamonster.livejournal.com - 2011-09-12 20:38 (UTC) - Expand

(no subject)

[identity profile] usovalx.livejournal.com - 2011-09-13 01:56 (UTC) - Expand

(no subject)

[identity profile] vaddimka.livejournal.com - 2011-09-12 21:20 (UTC) - Expand

(no subject)

[identity profile] aamonster.livejournal.com - 2011-09-13 19:21 (UTC) - Expand

(no subject)

[identity profile] sorhed.livejournal.com - 2011-09-12 08:42 (UTC) - Expand

(no subject)

[identity profile] sorhed.livejournal.com - 2011-09-12 10:32 (UTC) - Expand

(no subject)

[identity profile] sorhed.livejournal.com - 2011-09-12 10:35 (UTC) - Expand

(no subject)

[identity profile] sorhed.livejournal.com - 2011-09-12 10:39 (UTC) - Expand

(no subject)

[identity profile] nealar.livejournal.com - 2011-09-12 10:54 (UTC) - Expand

(no subject)

[identity profile] nealar.livejournal.com - 2011-09-12 11:08 (UTC) - Expand

(no subject)

[identity profile] nealar.livejournal.com - 2011-09-12 11:21 (UTC) - Expand

(no subject)

[identity profile] nealar.livejournal.com - 2011-09-12 12:11 (UTC) - Expand

(no subject)

[identity profile] nealar.livejournal.com - 2011-09-12 12:43 (UTC) - Expand

(no subject)

[identity profile] sorhed.livejournal.com - 2011-09-12 10:58 (UTC) - Expand

(no subject)

[identity profile] dizel-by.livejournal.com - 2011-09-12 10:49 (UTC) - Expand

(no subject)

[identity profile] sorhed.livejournal.com - 2011-09-12 10:57 (UTC) - Expand

(no subject)

[identity profile] dizel-by.livejournal.com - 2011-09-12 10:58 (UTC) - Expand

(no subject)

[identity profile] sorhed.livejournal.com - 2011-09-12 11:00 (UTC) - Expand

(no subject)

[identity profile] dizel-by.livejournal.com - 2011-09-12 11:09 (UTC) - Expand

(no subject)

[identity profile] metaclass.livejournal.com - 2011-09-12 11:10 (UTC) - Expand

(no subject)

[identity profile] dizel-by.livejournal.com - 2011-09-12 11:11 (UTC) - Expand

(no subject)

[identity profile] theiced.livejournal.com - 2011-09-12 14:44 (UTC) - Expand

(no subject)

[identity profile] sorhed.livejournal.com - 2011-09-12 14:45 (UTC) - Expand

(no subject)

[identity profile] sorhed.livejournal.com - 2011-09-12 10:32 (UTC) - Expand

(no subject)

[identity profile] sorhed.livejournal.com - 2011-09-12 10:36 (UTC) - Expand

(no subject)

[identity profile] bydl0coder.livejournal.com - 2011-09-12 14:37 (UTC) - Expand

(no subject)

[identity profile] aamonster.livejournal.com - 2011-09-12 07:24 (UTC) - Expand

[identity profile] tzirechnoy.livejournal.com 2011-09-12 07:42 am (UTC)(link)
Это Ctrl+C-то в винде и линуксе одинаково?

(Anonymous) 2011-09-12 12:46 am (UTC)(link)
quit - ^D везде же.

[identity profile] metaclass.livejournal.com 2011-09-12 04:49 am (UTC)(link)
Не под виндами )

(no subject)

[identity profile] maholet.livejournal.com - 2011-09-13 01:19 (UTC) - Expand

[identity profile] darkdrip.livejournal.com 2011-09-12 04:26 am (UTC)(link)
# python
Python 2.4.3 (#1, Mar 5 2011, 21:25:56)
[GCC 4.1.2 20080704 (Red Hat 4.1.2-50)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> exit
'Use Ctrl-D (i.e. EOF) to exit.'
>>>

[identity profile] justy-tylor.livejournal.com 2011-09-12 12:07 pm (UTC)(link)
В виндах Ctrl-Z там же.

[identity profile] dnnx.livejournal.com 2011-09-12 06:55 am (UTC)(link)
Люто плюсую по всем пунктам.

Недавно сам писал в кругле (https://plus.google.com/118335385029807624129/posts/JzK6hCFcTB1) про такую херь в кложуровском репле.

Как выяснилось, команды выхода там нет. На каком-то форуме предложили такое: `(. System exit 0)`.

[personal profile] alll 2011-09-12 06:37 pm (UTC)(link)
killall спасут на одной платформе,
а taskkill /im - на другой