all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: David Larsson <david.larsson@selfhosted.xyz>
To: help-guix@gnu.org
Subject: Failing to use guile-bash
Date: Wed, 21 Nov 2018 19:02:10 +0100 (CET)	[thread overview]
Message-ID: <alpine.LNX.2.21.9999.1811211901590.933@localhost> (raw)

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

             reply	other threads:[~2018-11-21 18:17 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-11-21 18:02 David Larsson [this message]
2018-11-28 13:41 ` Failing to use guile-bash 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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=alpine.LNX.2.21.9999.1811211901590.933@localhost \
    --to=david.larsson@selfhosted.xyz \
    --cc=help-guix@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.