[ http://dev.sourcefabric.org/browse/LS-618?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=23082#action_23082 ]
David Baelde commented on LS-618: --------------------------------- The answer to your title seems to be "yes". Loading pervasives is done using load_libs, which is triggered implicitly when evaluating a script passed on the command line (TODO: check that it also works fine when stdin is passed, eg. "liquidsoap -"). When just passing --interactive, libs are not loaded. The patch could simply be, in main.ml: if !interactive then begin + load_libs () ; I don't see any problem with it, but I couldn't test at all, and I have to go now. But you're welcome to commit it. > liquidsoap --interactive does not load pervasives? > -------------------------------------------------- > > Key: LS-618 > URL: http://dev.sourcefabric.org/browse/LS-618 > Project: Liquidsoap > Issue Type: Bug > Reporter: Romain Beauxis > Priority: Important > > toots@zulu overlord (tracks-listing) % liquidsoap -h list.assoc > *** One entry in scripting values: > Alias for the <code>l[k]</code> notation. > Category: List > Type: (string,[(string*string)])->string > Parameters: > * (unlabeled) : string (default: None) > Key to look for > * (unlabeled) : [(string*string)] (default: None) > List of pairs (key,value) > BUT: > toots@zulu overlord (tracks-listing) % liquidsoap --interactive > Welcome to the EXPERIMENTAL liquidsoap interactive loop. > You may enter any sequence of expressions, terminated by ";;". > Each input will be fully processed: parsing, type-checking, > evaluation (forces default types), output startup (forces default clock). > Logs can be found in > "/var/folders/R3/R3a-iqUnFKeX52JIUXGbWE+++TM/-Tmp-/liquidsoap-15080-65ec2a.log". > # list.assoc;; > At line 1, char 11-12: the variable list.assoc used here has not been > previously defined. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://dev.sourcefabric.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Savonet-devl mailing list Savonet-devl@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/savonet-devl