* Failing to use guile-bash
@ 2018-11-21 18:02 David Larsson
2018-11-28 13:41 ` Catonano
2018-11-30 11:54 ` scheme shells (was Re: Failing to use guile-bash) Giovanni Biscuolo
0 siblings, 2 replies; 4+ messages in thread
From: David Larsson @ 2018-11-21 18:02 UTC (permalink / raw)
To: help-guix
Hi,
I installed the guile-bash package and tried to use it as below but
can't get it to work. Anyone who is successfully using it?
So far, I have done:
guix package -i guile-bash
enable -f ~/.guix-profile/lib/bash/libguile-bash.so scm
then created the file example.scm with the following content.
(use-modules (gnu bash))
(define-bash-function (dtach-start-emacs)
(unless (file-exists? "/tmp/emacs.dtach")
#$ [dtach -n /tmp/emacs.dtach emacs]))
and then ran: scm example.scm
which gave the following error message:
;;; compiling /home/user1/src/code_guile/example.scm
;;; WARNING: compilation of /home/user1/src/code_guile/example.scm failed:
;;; ERROR: In procedure scm_lreadr: example.scm:18:8: Unknown # object:
#\$
ERROR: In procedure scm_lreadr:
/home/user1/src/code_guile/example.scm:18:8: Unknown # object: #\
Not sure what's missing. All suggestions appreciated.
--
Regards
David Larsson
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Failing to use guile-bash
2018-11-21 18:02 Failing to use guile-bash David Larsson
@ 2018-11-28 13:41 ` Catonano
2018-11-30 11:54 ` scheme shells (was Re: Failing to use guile-bash) Giovanni Biscuolo
1 sibling, 0 replies; 4+ messages in thread
From: Catonano @ 2018-11-28 13:41 UTC (permalink / raw)
To: david.larsson; +Cc: help-guix
[-- Attachment #1: Type: text/plain, Size: 1369 bytes --]
Il giorno mer 21 nov 2018 alle ore 19:22 David Larsson <
david.larsson@selfhosted.xyz> ha scritto:
> Hi,
> I installed the guile-bash package and tried to use it as below but
> can't get it to work. Anyone who is successfully using it?
>
> So far, I have done:
> guix package -i guile-bash
> enable -f ~/.guix-profile/lib/bash/libguile-bash.so scm
>
> then created the file example.scm with the following content.
> (use-modules (gnu bash))
> (define-bash-function (dtach-start-emacs)
> (unless (file-exists? "/tmp/emacs.dtach")
> #$ [dtach -n /tmp/emacs.dtach emacs]))
>
> and then ran: scm example.scm
>
> which gave the following error message:
> ;;; compiling /home/user1/src/code_guile/example.scm
> ;;; WARNING: compilation of /home/user1/src/code_guile/example.scm failed:
> ;;; ERROR: In procedure scm_lreadr: example.scm:18:8: Unknown # object:
> #\$
> ERROR: In procedure scm_lreadr:
> /home/user1/src/code_guile/example.scm:18:8: Unknown # object: #\
>
> Not sure what's missing. All suggestions appreciated.
>
> --
> Regards
> David Larsson
>
>
It seems the reader gets confused by
#$
I don't now how guile-bash is supposed to be used
I didn't know guile-bash existed and I can't find it anywhere on line
All that said, you could try asing on the guile users mailing list
Maybe there's someone, there, who's not following guix related things
[-- Attachment #2: Type: text/html, Size: 1909 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* scheme shells (was Re: Failing to use guile-bash)
2018-11-21 18:02 Failing to use guile-bash David Larsson
2018-11-28 13:41 ` Catonano
@ 2018-11-30 11:54 ` Giovanni Biscuolo
2018-12-02 14:26 ` Ludovic Courtès
1 sibling, 1 reply; 4+ messages in thread
From: Giovanni Biscuolo @ 2018-11-30 11:54 UTC (permalink / raw)
To: David Larsson, help-guix
[-- Attachment #1: Type: text/plain, Size: 2012 bytes --]
Hi David,
David Larsson <david.larsson@selfhosted.xyz> writes:
> Hi,
> I installed the guile-bash package and tried to use it as below but
> can't get it to work. Anyone who is successfully using it?
unfortunately the project is currently retired:
https://git.savannah.gnu.org/cgit/guix.git/tree/gnu/packages/guile.scm#n1751
«
;; This project is currently retired. It was initially announced here:
;; <https://lists.gnu.org/archive/html/guile-user/2015-02/msg00003.html>.
»
and the git repo appears to be deleted
https://anonscm.debian.org/cgit/users/kaction-guest/retired/dev.guile-bash.git
unfortunately the other project guile-scsh (Guile Scheme Shell) is
bitrotten according to this
https://www.gnu.org/software/guile/manual/html_node/The-Scheme-shell-_0028scsh_0029.html
so the two projects I'm aware of are unmaintained :-( (I'm still not able to
even think contributing)
going a *little bit* OT...
(**disclaimer**: I'm an Emacs newbie _addicted_ so I'm much biased
a possible alternative I can suggest you is to explore Eshell [1], the
Emacs eshell: it's not a POSIX shell replacement but it's an interesting
interface to our operating system, and we can script it [2]
on this matter I found an interesting (long) article worth reading
https://web.archive.org/web/20181014151102/https://ambrevar.xyz/emacs-eshell/
«Back in the days, VT-like terminals were our main mean of communicating
with a machine. Decades went by, our desktop computers can now handle
gigabytes of buffering and display in 24-bit colors, and yet we still
stick to terminal emulators, that is, programs that emulate the
restrictions of those ancient machines. »
DANGER: that article made me more Emacs addicted
HTH!
Gio
[...]
[1] https://www.gnu.org/software/emacs/manual/html_node/eshell/Introduction.html#Introduction
[2] https://www.gnu.org/software/emacs/manual/html_node/eshell/Scripts.html
--
Giovanni Biscuolo
Xelera IT Infrastructures
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2018-12-02 14:26 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-11-21 18:02 Failing to use guile-bash David Larsson
2018-11-28 13:41 ` Catonano
2018-11-30 11:54 ` scheme shells (was Re: Failing to use guile-bash) Giovanni Biscuolo
2018-12-02 14:26 ` Ludovic Courtès
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.