* recutils bash builtin, readrec
@ 2018-05-29 23:32 Platoxia
0 siblings, 0 replies; 2+ messages in thread
From: Platoxia @ 2018-05-29 23:32 UTC (permalink / raw)
To: help-guix@gnu.org
[-- Attachment #1: Type: text/plain, Size: 1144 bytes --]
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.
platoxia
[-- Attachment #2: Type: text/html, Size: 1657 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: recutils bash builtin, readrec
@ 2018-05-31 5:08 Platoxia
0 siblings, 0 replies; 2+ messages in thread
From: Platoxia @ 2018-05-31 5:08 UTC (permalink / raw)
To: help-guix@gnu.org
> 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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2018-05-31 5:09 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-05-29 23:32 recutils bash builtin, readrec Platoxia
-- strict thread matches above, loose matches on Subject: below --
2018-05-31 5:08 Platoxia
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.