th@debian:~$ ./skr
This is SBCL 1.3.14.debian, an implementation of ANSI Common Lisp.
More information about SBCL is available at <http://www.sbcl.org/>.
SBCL is free software, provided as is, with absolutely no warranty.
It is mostly in the public domain; some portions are provided under
BSD-style licenses. See the CREDITS and COPYING files in the
distribution for more information.
Всем удачи....
скажите, пожалуйста, что не правильно?
Когда вы вводите эти строки напрямую в терминале, то каждая передаётся той программе, которая в данный момент ожидает ввода. /usr/bin/sbcl передаётся bash и запускает sbcl, который начинает ожидать ввода, и следующая команда передаётся уже ему. В скриптах же так не получится. Скрипт передаётся на запуск bash, и только он один из него читает. Строка /usr/bin/sbcl запускает sbcl, который ждёт ввода с терминала. С терминала, а не из скрипта. Вы можете, как предложил Vascom, сменить строку "#!" в скрипте, чтобы скрипт запускался сразу с помощью sbcl:
th@debian:~$ chmod ugo+x skr
th@debian:~$ ./skr
This is SBCL 1.3.14.debian, an implementation of ANSI Common Lisp.
More information about SBCL is available at <http://www.sbcl.org/>.
SBCL is free software, provided as is, with absolutely no warranty.
It is mostly in the public domain; some portions are provided under
BSD-style licenses. See the CREDITS and COPYING files in the
distribution for more information.
* th@debian:~$