Re: cygpath -w space becomes line breaks?

2020-11-01 Thread Andrey Repin via Cygwin
Greetings, 斟酌鵬兄!

Please no top-posting in the list.

> On Sun, Nov 1, 2020 at 11:39 PM Achim Gratz  wrote:
>>
>> > Is this intended or am I misconfiguring something?
>>
>> You have to quote any arguments that may contain spaces in the shell,
>> else they get parsed as separate words and later interpreted as separate
>> arguments to cygpath.

> Ooooh thanks I do it like cygpath -w "`pwd`" and now it works now.

There's an easier way to achieve the same without a subshell call.

cygpath -alw .


-- 
With best regards,
Andrey Repin
Sunday, November 1, 2020 23:50:08

Sorry for my terrible english...
--
Problem reports:  https://cygwin.com/problems.html
FAQ:  https://cygwin.com/faq/
Documentation:https://cygwin.com/docs.html
Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple


Re: cygpath -w space becomes line breaks?

2020-11-01 Thread 斟酌鵬兄 via Cygwin
Ooooh thanks I do it like cygpath -w "`pwd`" and now it works now.

On Sun, Nov 1, 2020 at 11:39 PM Achim Gratz  wrote:
>
> > Is this intended or am I misconfiguring something?
>
> You have to quote any arguments that may contain spaces in the shell,
> else they get parsed as separate words and later interpreted as separate
> arguments to cygpath.
>
>
> Regards,
> Achim.
> --
> +<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+
>
> Samples for the Waldorf Blofeld:
> http://Synth.Stromeko.net/Downloads.html#BlofeldSamplesExtra
> --
> Problem reports:  https://cygwin.com/problems.html
> FAQ:  https://cygwin.com/faq/
> Documentation:https://cygwin.com/docs.html
> Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple



-- 
Regards,
Penguin
--
Problem reports:  https://cygwin.com/problems.html
FAQ:  https://cygwin.com/faq/
Documentation:https://cygwin.com/docs.html
Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple


Re: cygpath -w space becomes line breaks?

2020-11-01 Thread Achim Gratz
> Is this intended or am I misconfiguring something?

You have to quote any arguments that may contain spaces in the shell,
else they get parsed as separate words and later interpreted as separate
arguments to cygpath.


Regards,
Achim.
-- 
+<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+

Samples for the Waldorf Blofeld:
http://Synth.Stromeko.net/Downloads.html#BlofeldSamplesExtra
--
Problem reports:  https://cygwin.com/problems.html
FAQ:  https://cygwin.com/faq/
Documentation:https://cygwin.com/docs.html
Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple


cygpath -w space becomes line breaks?

2020-11-01 Thread 斟酌鵬兄 via Cygwin
Hi,

Is this intended or am I misconfiguring something?

penguin@MY-PC~/Documents/Visual Studio 2015/Projects
$ cygpath -w `pwd`
D:\penguin\Documents\Visual
Studio
2015\Projects

penguin@MY-PC~/Documents/Visual Studio 2015/Projects
$ cygpath -w `pwd` | xxd
: 443a 5c70 656e 6775 696e 5c44 6f63 756d  D:\penguin\Docum
0010: 656e 7473 5c56 6973 7561 6c0a 5374 7564  ents\Visual.Stud
0020: 696f 0a32 3031 355c 5072 6f6a 6563 7473  io.2015\Projects
0030: 0a   .

As you can see the dir "Visual Studio 2015" being broken into lines.

-- 
Regards,
Penguin
--
Problem reports:  https://cygwin.com/problems.html
FAQ:  https://cygwin.com/faq/
Documentation:https://cygwin.com/docs.html
Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple