From: Platoxia <platoxia@protonmail.com>
To: "help-guix@gnu.org" <help-guix@gnu.org>
Subject: Re: recutils bash builtin, readrec
Date: Thu, 31 May 2018 01:08:34 -0400 [thread overview]
Message-ID: <BJZhMKi-SdJfnNorxy3ZJK8rwshj3pu5e7rmZzrM9h5o1inpcRxzSVlol6QaUTcy7ZbLtrUlMKffKs71bt6Edw4Gy2YaCn73VcKL-OmlHnc=@protonmail.com> (raw)
> I've been playing around with recutils in bash scripts and came across the bash builtin, readrec, in the recutils info docs. Unfortunately, I can't seem to get readrec to work.
>
> In trying to get this to work I've attempted the command, enable readrec.so readrec, as per the manual without success. I checked my system and readrec.so does exist, although I don't have any idea about whether there is something I need to do for the path to make it work. I also came across this old thread in the guix-devel archive, https://lists.gnu.org/archive/html/guix-devel/2015-10/msg00665.html and checked recutils with guix edit recutils and it appears that the bash header fix was implemented. To be fair, though, I really don't understand Scheme so I can't be sure and I also can't seem to get readrec to work on Parabola, which I also don't know much about...
>
> At any rate, this isn't critical and I wouldn't want anyone who is already busy on other Guix work to be distracted by this. That said, if anyone happens to be using recutils and has the readrec bash builtin working I would appreciate any advice on getting it to work on my system.
After some more searching I found this thread https://lists.gnu.org/archive/html/bug-recutils/2015-10/msg00002.html that has the answer buried somewhere within. The recutils manual says to use the command 'enable readrec.so readrec' when it should be 'enable -f readrec.so readrec'...the '-f' option was left out in the manual. Furthermore, for GuixSD the full path to readrec.so is required. In my case, a simple 'updatedb' followed by 'locate readrec.so' did the trick. The correct command should look something like this, for anyone who is interested:
$ enable -f /gnu/store/<hash>-recutils-1.7/lib/bash/readrec.so readrec
Leo Famulari did all the work on this but I couldn't find any info other than what was in the mailing lists. At any rate, it now works on my GuixSD installation and hopefully this posting will help get the info out (even though it is in another mailing list).
For what its worth, I sent in a bug report to recutils for the needed corrections to the manual.
Platoxia
next reply other threads:[~2018-05-31 5:09 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-05-31 5:08 Platoxia [this message]
-- strict thread matches above, loose matches on Subject: below --
2018-05-29 23:32 recutils bash builtin, readrec Platoxia
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='BJZhMKi-SdJfnNorxy3ZJK8rwshj3pu5e7rmZzrM9h5o1inpcRxzSVlol6QaUTcy7ZbLtrUlMKffKs71bt6Edw4Gy2YaCn73VcKL-OmlHnc=@protonmail.com' \
--to=platoxia@protonmail.com \
--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.