From mboxrd@z Thu Jan 1 00:00:00 1970 From: Catonano Subject: Re: Failing to use guile-bash Date: Wed, 28 Nov 2018 14:41:09 +0100 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000e150b5057bb9b8e4" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:60365) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gS05m-0005l3-CB for help-guix@gnu.org; Wed, 28 Nov 2018 08:41:27 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gS05l-0000sD-Gy for help-guix@gnu.org; Wed, 28 Nov 2018 08:41:26 -0500 Received: from mail-yw1-xc33.google.com ([2607:f8b0:4864:20::c33]:46519) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gS05l-0000r3-Aq for help-guix@gnu.org; Wed, 28 Nov 2018 08:41:25 -0500 Received: by mail-yw1-xc33.google.com with SMTP id t13so10676840ywe.13 for ; Wed, 28 Nov 2018 05:41:25 -0800 (PST) In-Reply-To: List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+gcggh-help-guix=m.gmane.org@gnu.org Sender: "Help-Guix" To: david.larsson@selfhosted.xyz Cc: help-guix --000000000000e150b5057bb9b8e4 Content-Type: text/plain; charset="UTF-8" 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 --000000000000e150b5057bb9b8e4 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


Il gio= rno mer 21 nov 2018 alle ore 19:22 David Larsson <david.larsson@selfhosted.xyz> ha scritto:<= br>
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)
=C2=A0 =C2=A0 (unless (file-exists? "/tmp/emacs.dtach")
=C2=A0 =C2=A0 =C2=A0 #$ [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:<= br> ;;; 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 <= br>

#$

I don't now ho= w guile-bash is supposed to be used
I didn't know guile-b= ash existed and I can't find it anywhere on line=C2=A0

All that said, you could try asing on the guile users mailing list=

Maybe there's someone, there, who's not f= ollowing guix related things
--000000000000e150b5057bb9b8e4--