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

Replace wordexp with custom implementation #2167

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Caellian
Copy link
Collaborator

This PR replaces wordexp with custom implementation for all platforms. Precursor of this implementation was used on platforms without wordexp, so this PR consolidates the two into one.

Linux version will loose ability to use some less commonly used expansions such as field splitting. The important things will be reimplemented, the removed stuff is basically things that don't make sense i.e. only work well in terminal or shell scripts (e.g. field splitting depends on IFS env variable which isn't controlled by conky anyway; some other things that).

BSDs, Solaris, etc. will get much better handling of paths - they'll be able to use command expansion and math expansion.

TODO

  • Add command expansion.
  • Finish wildcard expansion.
  • Implement math evaluation by expanding algebra.cc with code from tinyexpr

@github-actions github-actions bot added documentation suggests documentation changes or improvements sources PR modifies project sources lua related to Lua integration in conky labels Feb 20, 2025
Copy link

netlify bot commented Feb 20, 2025

Deploy Preview for conkyweb ready!

Name Link
🔨 Latest commit 8569f77
🔍 Latest deploy log https://app.netlify.com/sites/conkyweb/deploys/67b7bbe65d87a50008fe5c56
😎 Deploy Preview https://deploy-preview-2167--conkyweb.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@Caellian Caellian force-pushed the dev/real-path-improvements branch from c838221 to f95095d Compare February 20, 2025 23:29
@Caellian Caellian force-pushed the dev/real-path-improvements branch from f95095d to 8569f77 Compare February 20, 2025 23:33
@github-actions github-actions bot removed documentation suggests documentation changes or improvements lua related to Lua integration in conky labels Feb 20, 2025
@Caellian Caellian added enhancement suggests alteration of existing functionality to better support different use cases os: linux related exclusively to Linux (not BSD/MacOS) os: openbsd related to OpenBSD os: haiku related to Haiku OS labels Feb 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement suggests alteration of existing functionality to better support different use cases os: haiku related to Haiku OS os: linux related exclusively to Linux (not BSD/MacOS) os: openbsd related to OpenBSD sources PR modifies project sources
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant