public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* cygpath -w space becomes line breaks?
@ 2020-11-01 15:17 斟酌鵬兄
  2020-11-01 15:38 ` Achim Gratz
  0 siblings, 1 reply; 4+ messages in thread
From: 斟酌鵬兄 @ 2020-11-01 15:17 UTC (permalink / raw)
  To: 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
00000000: 443a 5c70 656e 6775 696e 5c44 6f63 756d  D:\penguin\Docum
00000010: 656e 7473 5c56 6973 7561 6c0a 5374 7564  ents\Visual.Stud
00000020: 696f 0a32 3031 355c 5072 6f6a 6563 7473  io.2015\Projects
00000030: 0a                                       .

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

-- 
Regards,
Penguin

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: cygpath -w space becomes line breaks?
  2020-11-01 15:17 cygpath -w space becomes line breaks? 斟酌鵬兄
@ 2020-11-01 15:38 ` Achim Gratz
  2020-11-01 15:43   ` 斟酌鵬兄
  0 siblings, 1 reply; 4+ messages in thread
From: Achim Gratz @ 2020-11-01 15:38 UTC (permalink / raw)
  To: cygwin

> 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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: cygpath -w space becomes line breaks?
  2020-11-01 15:38 ` Achim Gratz
@ 2020-11-01 15:43   ` 斟酌鵬兄
  2020-11-01 20:51     ` Andrey Repin
  0 siblings, 1 reply; 4+ messages in thread
From: 斟酌鵬兄 @ 2020-11-01 15:43 UTC (permalink / raw)
  To: Achim Gratz; +Cc: 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 <Stromeko@nexgo.de> 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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: cygpath -w space becomes line breaks?
  2020-11-01 15:43   ` 斟酌鵬兄
@ 2020-11-01 20:51     ` Andrey Repin
  0 siblings, 0 replies; 4+ messages in thread
From: Andrey Repin @ 2020-11-01 20:51 UTC (permalink / raw)
  To: 斟酌鵬兄, cygwin

Greetings, 斟酌鵬兄!

Please no top-posting in the list.

> On Sun, Nov 1, 2020 at 11:39 PM Achim Gratz <Stromeko@nexgo.de> 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...

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2020-11-01 21:05 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-11-01 15:17 cygpath -w space becomes line breaks? 斟酌鵬兄
2020-11-01 15:38 ` Achim Gratz
2020-11-01 15:43   ` 斟酌鵬兄
2020-11-01 20:51     ` Andrey Repin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).