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

Handling errors from shell. #14

Open
psmolak opened this issue Jul 7, 2017 · 1 comment
Open

Handling errors from shell. #14

psmolak opened this issue Jul 7, 2017 · 1 comment

Comments

@psmolak
Copy link

psmolak commented Jul 7, 2017

How we are supposed to handle errors when something wrong happens from the shell script level?

Let's say we want to move window like so:
echo 100 > $X11FS/$WID/geometry/y
however some internal x11 error occurs.

Checking #? does not make any sense since that's clearly not the cat's fault here.

@sdhand
Copy link
Owner

sdhand commented Jul 7, 2017

This isn't really something I've thought about. I guess it would be possible to add a file, say at /error, which contains some sort of log of X errors that have happened.

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

2 participants