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

SSID lookup in net block fails because of erronous parameters #280

Closed
moritzheiber opened this issue Oct 8, 2018 · 2 comments · Fixed by #282
Closed

SSID lookup in net block fails because of erronous parameters #280

moritzheiber opened this issue Oct 8, 2018 · 2 comments · Fixed by #282

Comments

@moritzheiber
Copy link

The recently introduced fallback in the "net" block for the SSID lookup introduced a new option to the /bin/sh Command call, -o pipefail, which is not supported by most sh implementation, notably dash, which is shipped with Ubuntu.

I would propose to just drop the -o pipefail.

Reference: mathroc/i3status-rust@93845e4

@moritzheiber
Copy link
Author

cc @mathroc

@mathroc
Copy link
Contributor

mathroc commented Oct 8, 2018

hmm my bad :/

unfortunately, this does not work without -o pipefail

mathieu in ~ $ sh -c "iw dev wlp2s0 link | grep \"^\\sSSID:\" | sed \"s/^\\sSSID:\\s//g\" || nmcli -g general.connection device show wlp2s0"
sh: iw: command not found
mathieu in ~ $ sh -c -o pipefail "iw dev wlp2s0 link | grep \"^\\sSSID:\" | sed \"s/^\\sSSID:\\s//g\" || nmcli -g general.connection device show wlp2s0"
sh: iw: command not found
MY_ESSID

I'm going to try to find an alternative without using -o pipefail, I'll ping you when I have a PR to test

mathroc added a commit to mathroc/i3status-rust that referenced this issue Oct 8, 2018
on ubuntu and probably other systems, /bin/sh does not support `-o pipefail`

closes greshake#280
mathroc added a commit to mathroc/i3status-rust that referenced this issue Oct 8, 2018
on ubuntu and probably other systems, /bin/sh does not support `-o pipefail`

closes greshake#280
mathroc added a commit to mathroc/i3status-rust that referenced this issue Oct 8, 2018
on ubuntu and probably other systems, /bin/sh does not support `-o pipefail`

closes greshake#280
mathroc added a commit to mathroc/i3status-rust that referenced this issue Oct 8, 2018
on ubuntu and probably other systems, /bin/sh does not support `-o pipefail`

closes greshake#280
mathroc added a commit to mathroc/i3status-rust that referenced this issue Oct 8, 2018
on ubuntu and probably other systems, /bin/sh does not support `-o pipefail`

closes greshake#280
mathroc added a commit to mathroc/i3status-rust that referenced this issue Oct 8, 2018
on ubuntu and probably other systems, /bin/sh does not support `-o pipefail`

closes greshake#280
mathroc added a commit to mathroc/i3status-rust that referenced this issue Oct 8, 2018
on ubuntu and probably other systems, /bin/sh does not support `-o pipefail`

closes greshake#280
mathroc added a commit to mathroc/i3status-rust that referenced this issue Oct 8, 2018
on ubuntu and probably other systems, /bin/sh does not support `-o pipefail`

closes greshake#280
mathroc added a commit to mathroc/i3status-rust that referenced this issue Nov 9, 2018
on ubuntu and probably other systems, /bin/sh does not support `-o pipefail`

closes greshake#280
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants