-
-
Notifications
You must be signed in to change notification settings - Fork 92
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
Shell action can't parse element like '&&' correctly #402
Comments
@jiengup I'm not sure what is the question here. You can either rewrite the plugin to generate a zsh compatable script, or switch execution in SwiftBar from zsh to bash. |
I think it may be that swiftbar's string parser does something like "add quotas between some specific string"? --⬆️ Upgrade All (26) | terminal="true" refresh="true" bash="/opt/homebrew/bin/brew" param1="upgrade" param2="--formula" param3="c-ares" param4="cmake" param5="coreutils" param6="d2" param7="fd" param8="gawk" param9="gcc" param10="git-lfs" param11="go" param12="gperftools" param13="lf" param14="libpthread-stubs" param15="libssh" param16="lua" param17="mpfr" param18="node" param19="[email protected]" param20="[email protected]" param21="qemu" param22="smartmontools" param23="texinfo" param24="tree" param25="typst" param26="wimlib" param27="yarn" param28="&&" param29="/opt/homebrew/bin/brew" param30="upgrade" param31="--cask" param32="ipatool" Please notice /opt/homebrew/bin/brew upgrade --formula c-ares cmake coreutils d2 fd
gawk gcc git-lfs go gperftools lf libpthread-stubs libssh lua mpfr node openssl@
1.1 [email protected] qemu smartmontools texinfo tree typst wimlib yarn '&&' /opt/homebrew/bin/brew upgrade --cask ipatool Plese notice Please tell me if I'm mistaken on this issue and if it's because of some features of zsh or ruby language. |
Ah, got it. Sorry, early morning comment:) Yeah, you're right, this is might be quating\escaping I've added in the latest release, let me look into it. |
@jiengup can you check if beta build fixes this? |
@melonamin Yep, I just install beta build and test it. It works perfectly. Nice job! I'll keep using this beta version and give feedback. Thank you for getting back to me. |
@melonamin Sorry, I found it will not work perfectly when I write in python like bash="/usr/bin/vim", param1="~/.vimrc" Swiftbar will produce output |
I came here after digging around with the same issue, formerly-working |
Signed-off-by: Alex Mazanov <[email protected]>
As in https://github.com/matryer/xbar-plugins/blob/main/Dev/Homebrew/brew-updates.1h.rb#L306
if writing in ruby like:
then the shell will run like this:
however zsh can not accept '&&' as && or ';' as ; and raise an error.
The text was updated successfully, but these errors were encountered: