Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bash script does not work and there is no Zotero menu #4

Open
uma-hh opened this issue Apr 2, 2018 · 2 comments
Open

Bash script does not work and there is no Zotero menu #4

uma-hh opened this issue Apr 2, 2018 · 2 comments

Comments

@uma-hh
Copy link

uma-hh commented Apr 2, 2018

Hi,
when I try this (advice in Readme):

[[ -L "legal-brief" -a -L "zotero" -a $(realpath "legal-brief") = $(realpath "zotero" ]] && rm legal-brief zotero;

I get this error:

-bash: syntax error in conditional expression
-bash: syntax error near `-a'

This is

$ bash --version
GNU bash, version 3.2.57(1)-release (x86_64-apple-darwin17)
Copyright (C) 2007 Free Software Foundation, Inc.

on MacOS 10.13 and

$ zotero --version
Zotero Zotero 5.0.42, Copyright (c) 2006-2018 Contributors

where

 $ alias zotero=/Applications/Zotero.app/Contents/MacOS/zotero

TeXmacs is v. 1.99.6 (no shell alias; I installed the DMG).

Additionally, from the "Tutorial Introduction" I take that the "[[...]]" stuff in optional? I can add "tm-zotero" style (line above text window) but the Zotero menu does not appear, as is promised:

A Zotero menu item will appear in the toplevel menu. You will see that this menu is present while viewing this documentation in front of you now, since I've added the tm-zotero style package to it.

I should say that I currently only toy along with TeXmacs. (Used LyX so far but its HTML export is not very good which prevents good transformations to EPUB or DocX etc via Pandoc, the same looking quite good from TeXmacs' HTML as far as I have tested this).

Thank you!

@uma-hh uma-hh changed the title Bash script does not work Bash script does not work and there is no Zotero menu Apr 2, 2018
@chenxinfeng4
Copy link

I've encountered just the some issure as yours, in my Mac with TexMacs1.99.8 .

Sadly, I guess there is no clear solution yet.
Finally, Oh, I GIVE UP.

@yojik-lima
Copy link

yojik-lima commented Dec 23, 2021

Hi, I have same problem

Here is the bug report :

I m on Mac os X 11.4 Big SUR

the default shell is zsh :

$ [[ -L "legal-brief" -a -L "zotero" -a $(realpath "legal-brief") = $(realpath "zotero" ]] && rm legal-brief zotero
cond cmdsubst>

if on bash :

bash-3.2$ [[ -L "legal-brief" -a -L "zotero" -a $(realpath "legal-brief") = $(realpath "zotero" ]] && rm legal-brief zotero bash: syntax error in conditional expression bash: syntax error near -a'
`

And there is no Zotero Menu that appaear in TeXmacs

But there is the legal brief style that appaear .

It s seems the only shell oneliner that doesn't work , I followed all the github tutorial

Do you think it s related to the shell or shell version ?

I really love TeXmacs and try Lyx but doesn't seems to suit to my need and the only thing that prevent me to use it everyday life (in my university legal research ) , is the integration of Zotero with it.

I haven't try on my Linux distribution and will keep in touch if it does work on my GNU/Linux box, also if we can have some information on which version of linux Karl Hegbloom did use , I m willing to use virtual machine to only run TexMacs with Zotero -JurisM integration

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants