Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers.
This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers.
Closed 2 years ago.
Improve this question
I thought this would be quite simple task, but I can figure out how to do it
I'm trying to set variable 2 equals to variable 1
set var1=xxx
echo %var1%
set %var2%=%var1%
echo %var2%
My goal is of course to see xxx as output the second time, but instead I get an error "The syntax of the command is incorrect."
Could anyone point me in the right direction?
/L
Change set %var2%=%var1% to set var2=%var1%.
Related
Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers.
This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers.
Closed 2 years ago.
Improve this question
Query:
DECLARE #Patd_base nvarchar(50) = 'axx';
PRINT #Patd_base
Output is
?axx
Why is the ? in the output? What does it mean?
Thanks for the help!
I believe you copied and pasted the value 'axx' from elsewhere. It has a hidden extended character in it.
When I copy/pasted your command above into Notepad++, and converted to ANSI encoding, I got '‪axx'
Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers.
This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers.
Closed 6 years ago.
Improve this question
EDIT: Sorry, I accidentally submitted the question before I was done. Boy, are you guys quick!
I've been going through the second edition of The C Programming Language and noticed that the book uses broken bars instead of pipes. Was this an old notation or are they interchangeable?
Its a font problem, most of the books show it as broken pipe even though it is the pipe operator
Boolean OR operator. It will set all bits true that are true in either of both values provided.
if ( a==0 || b==3 )
if any one of these is true the "if" statement will execute because it looks for true or
false values.
Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers.
This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers.
Closed 7 years ago.
Improve this question
I have to use an array in a command that is stored in a variable:
# Array
DOMAIN="${DOMAIN:-example.com}";
GETIP=$( dig +short "${DOMAIN}" ) # No output
The following command is working:
dig +short example.com
I can not reproduce your problem:
DOMAIN="${DOMAIN:-example.com}";
GETIP=$( dig +short "${DOMAIN}" )
echo "$GETIP"
Output:
93.184.216.34
The problem was that I used the Variable outside of the scope.
Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers.
This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers.
Closed 8 years ago.
Improve this question
I'm working on a scanner plugin that loops through a range of various channels in increments of up to 32.
I'm new to Lua.
Tables, tables everywhere.
I did not know Lua did not do +=, ++.
i = i + 1 -- flashbacks.
I'm running into this variable type error,
plugins/scanner/main.lua:136: 'for' limit must be a number
and i've checked my variable types. both say they're numbers.
right now i'm working on getting the incremental loops running smoothly.
here's the link to the code :
http://codepad.org/Dc3jBBrx
thanks again, stack.
I think it's probably just a typo on line 136
Scanner.innerRrangeMax should be Scanner.innerRangeMax
e.g line 136 is
for i = Scanner.innerRangeMin, Scanner.innerRrangeMax do
try
for i = Scanner.innerRangeMin, Scanner.innerRangeMax do
Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers.
This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers.
Closed 9 years ago.
Improve this question
# define a 10
main()
{
#define a 50
printf("%d",a);
}
The output is coming 50. Why is it happening so? Shouldn't the output come 10?
Compilation happens from top to bottom. so value of a is replaced by 50 when it enters into main function.
Here the local has precedence than global