flat assembler
Message board for the users of flat assembler.

Index > Windows > What does ^ do in the command line?

Author
Thread Post new topic Reply to topic
DOS386



Joined: 08 Dec 2006
Posts: 1901
DOS386
When I put "^blah" into the commandline, only "blah" (roof "^" vanished) arrives into my app in XP. Need to put "^^blah" (roof doubled) in order to get "^blah". BUG or feature? No problem in DOS or ME. Tested using this:
http://board.flatassembler.net/topic.php?p=156560#156560

_________________
Bug Nr.: 12345

Title: Hello World program compiles to 100 KB !!!

Status: Closed: NOT a Bug
Post 12 Dec 2013, 15:47
View user's profile Send private message Reply with quote
HaHaAnonymous



Joined: 02 Dec 2012
Posts: 1180
Location: Unknown
HaHaAnonymous
[ Post removed by author. ]


Last edited by HaHaAnonymous on 28 Feb 2015, 19:04; edited 1 time in total
Post 12 Dec 2013, 15:52
View user's profile Send private message Reply with quote
DOS386



Joined: 08 Dec 2006
Posts: 1901
DOS386
HaHaAnonymous wrote:
letter "b" with "^" above it does not exist


I don't want to have the roof above my "b". I want my arguments to arrive in my app undamaged.
Post 12 Dec 2013, 15:55
View user's profile Send private message Reply with quote
typedef



Joined: 25 Jul 2010
Posts: 2913
Location: 0x77760000
typedef
^ + x = UNICODE char

Where x = ASCII char
Post 12 Dec 2013, 18:34
View user's profile Send private message Reply with quote
baldr



Joined: 19 Mar 2008
Posts: 1651
baldr
DOS386,

In short, it escapes following character that is special for cmd.exe (i.e. redirection, pipe, and so on). ss64.com contains a lot of information about NT console shell and utilities.
Post 13 Dec 2013, 02:48
View user's profile Send private message Reply with quote
edfed



Joined: 20 Feb 2006
Posts: 4237
Location: 2018
edfed
lol, looks like bytes/char/wchar are the more crappy problems of all times in computer science...

exactlly the same problem with cross platform charsets, and linear data transferts among offices. always the same problem, they don't understand the basics of software (8bits = 1byte = 256 possible values), then, they try to reinvent it with strange features, using still made developments as underlayers....

yeah, software elitism is dead, now everybody can claim as project manager, even if he don't get anything about the real nature of digital data processing. then, one will assume ^blah means blah cause ^b means unicode crap.

it is a real cure to code in this context.

yesterday, i installed (on the job's machine,... not my own machine, never!!!!!) CMAKE (10MB) + java7 (125MB) + maven (6MB) + active python (46MB) just in order to compile a 2MB C++ application with the new build method... and i am just disgusted to use java7 just to run maven, just to load and compile dependencies.... ho my god... where dependencies are just supposed to be dynamic libs in the end... official software world disguss me.
Post 13 Dec 2013, 09:32
View user's profile Send private message Visit poster's website Reply with quote
El Tangas



Joined: 11 Oct 2003
Posts: 120
Location: Sunset Empire
El Tangas
Well, you can surround it with quotation marks in the command line, that is, literaly writing "^blah" instead of ^blah.
Post 15 Dec 2013, 12:49
View user's profile Send private message Reply with quote
DOS386



Joined: 08 Dec 2006
Posts: 1901
DOS386
> the letter "b" with "^" above it does not exist

Same effect with "^crap" or "^exitus" despite letters "c" and "e" with roof do exist.

> you can surround it with quotation marks in the command line

I know ... then I get roof intact, but quotes also included.

> ss64.com contains a lot of information about NT console shell

I see Shocked
Post 18 Dec 2013, 09:16
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2020, Tomasz Grysztar.

Powered by rwasa.