Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re^2: Windows and backslashes and replacements oh my!

by Anonymous Monk
on Jun 18, 2021 at 19:37 UTC ( [id://11134019]=note: print w/replies, xml ) Need Help??


in reply to Re: Windows and backslashes and replacements oh my!
in thread Windows and backslashes and replacements oh my!

Which is weird for Windows. ..

it's not even a little bit weird. Variable expansion is basic job of shells.

turn it off in your batch files

SETLOCAL DISABLEDELAYEDEXPANSION

help setlocal

Replies are listed 'Best First'.
Re^3: Windows and backslashes and replacements oh my!
by LanX (Saint) on Jun 18, 2021 at 20:36 UTC
    > it's not even a little bit weird. Variable expansion is basic job of shells.

    The discussion was about "escape sequences" with \ not "variable expansion".

    The escape meta in bat is ^ not \

    And \ is - unfortunately - used as path separator in win, which rules out any use as escape character.°

    Anything else would be indeed "weird", because it would make using paths impossible!

    Cheers Rolf
    (addicted to the Perl Programming Language :)
    Wikisyntax for the Monastery

    °) see Escape_character#Windows_Command_Prompt

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11134019]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (4)
As of 2024-03-29 08:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found