Thanks, it's something we've strugged with since v3, the new API is great,
*if* your command is simple enough to concatenate. I think without going
down the road of relational algebra for composing parts of commands, or
writing a bash lexer/parser combo, i'll always struggle to work with
anything with whitespaces in, and it really cheapens the user experience,
unfortunately :( Any recommendations you can make of how we might fix the
docs now that you know better how it works would be very welcome indeed.

Lee Hambley
http://lee.hambley.name/
+49 (0) 170 298 5667

On 2 March 2015 at 09:34, ruud <[email protected]> wrote:

>
>
> On Thursday, 26 February 2015 17:51:50 UTC+1, Lee Hambley wrote:
>>
>> It's documented *somewhere*, I recall having written about why, the long
>> and short version is "anything with a whitespace in it is not safe for us
>> to modify, and prepend and append paths, commands, etc", that unfortunately
>> also applies to test(), and of course there is no `test(:some, :symbol)`
>> syntax that makes sense.
>>
>>
> hi Lee,
> thank you for the explanation. I knew about the whitespace issues, but not
> it applied to test() as well. I'm glad I have a clear rule about what I can
> expect and what not.
>
>
>> I'd suggest to use the `capture()` api to `capture(:pwd)`, and use Ruby's
>> `File.join()` APIs (or, just concatenate the strings) to build the command
>> to test for.
>>
>>
> Yes, I already made a function that essentially did this. But my main goal
> was to *understand*  why my task was failing. So I am completely content
> now.
>
> Thanks again, Ruud
>
>  --
> You received this message because you are subscribed to the Google Groups
> "Capistrano" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web, visit
> https://groups.google.com/d/msgid/capistrano/6e349cd8-ddb0-40d4-836e-bf5c2d816c07%40googlegroups.com
> <https://groups.google.com/d/msgid/capistrano/6e349cd8-ddb0-40d4-836e-bf5c2d816c07%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Capistrano" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web, visit 
https://groups.google.com/d/msgid/capistrano/CAN_%2BVLWHWMrkn_xsaDOT5vokx2xW-PwijXa528UADsQzgWHX3A%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to