-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
fabric.contrib.files.sed uses "non-standard" flag '-r' #84
Comments
Jeff Forcier (bitprophet) posted: This is kind of a generic issue affecting a LOT of stuff, especially contrib which is currently "approaches that work for Jeff on two different Linux distros and that's about it." There's two possibly-good solutions I can see offhand:
on 2009-11-08 at 09:17am EST |
Jonas Nockert (lemonad) posted: I like the approach you've outlined better than making it a global option as it would make handling multiple systems within one fabfile possible. I generally use my macbook for development but deploy to servers running Ubuntu. Thanks for the extensive reply! I've just being using Fabric for the last couple of weeks but like it a lot so far. on 2009-11-08 at 09:36am EST |
Jeff Forcier (bitprophet) posted: Thanks, glad you like it :) When I say "global option" I really just mean "env var", which could be set globally if someone wanted, but I've been trying to push folks towards using the The system detection idea, also, would naturally be flexible so that it caches the test result on a per-connection basis -- so if you ran the same task on 3 different systems in a row, it would behave differently for each if necessary. However, that's more work so I bet I'll do the env var flag option first. Bumping down to 0.9.x now that I'm thinking of it, that particular change would be pretty quick. on 2009-11-08 at 12:28pm EST |
Jeff Forcier (bitprophet) posted: Oh, and, I almost always reply extensively. You'll get sick of my rambling after a while, I promise ;) Now if I could just put releases out as fast as I type about them... on 2009-11-08 at 12:29pm EST |
**** (lasizoillo) posted: In FreeBSD I have the same problem: Bad example:
Good example:
Maybe change this line for this code (import it's in bad place) resolve all platforms:
¿What about of cygwin? ¿Works as Linux or as Unix? on 2010-01-01 at 02:08pm EST |
Is this issue likely to get movement any time soon? |
This (the "tweak use of Re: when it gets done, I have not specifically planned to work on this aspect of things, but I am planning on moving ahead with Patchwork overall in the near future. Depends on my day job. |
Thanks to @Khalas we have a temporary workaround re: detecting -r vs -E in place now. |
Description
For example, using OS X it's
-E
and thus all contrib.files commands that depend onsed
fail.Not sure if there are any good solutions to this problem. Perhaps using a named argument such as "sed_extended_regexps_flag='-r'"?
Originally submitted by Jonas Nockert (lemonad) on 2009-11-08 at 06:43am EST
The text was updated successfully, but these errors were encountered: