-
-
Notifications
You must be signed in to change notification settings - Fork 26
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
sessionclean script stop working after upgrading 5.5.15+dfsg-1 --> 5.5.15+dfsg-2 #8
Comments
Or just leave the -e; I have already noticed this and fix is on it's way... |
If -e is left out it will break on bash instead, causing |
The default shell in Debian and Ubuntu is dash. Is there a way how to reproduce it in real life deployment? |
Fair point, but since the default is still a configuration option that can be changed, we should probably aim to keep "#!/bin/sh"-scripts portable. We should use: |
Thanks for the tip, I have modified the script and it will included in next upload to the PPAs (and Debian)...
|
(Np, I should be thanging you for the work maintaining this. ^_^ Donation is on my todo, btw). |
Re: "%b\n" I plan to rewrite that little bit more... see my discussion with Steve here: https://bugs.launchpad.net/ubuntu/+source/php5/+bug/1356113 P.S.: I now have a bitcoin address too :) |
This was due to the server defaulting to dash, when scripts begin with
!/bin/sh. With dash, output of echo differs in that flags suddenly aren't flags, as such:
$ echo -e
-e
Changing line 8 in /usr/lib/php5/sessionclean to instead use the echo binary:
/bin/echo -e "$SAPIS" |
seems to fix it.
The text was updated successfully, but these errors were encountered: