spaces

Passing a Batch File an Argument Containing a Quote Containing a Space

百般思念 提交于 2019-12-07 20:33:33
On many occasions I have dealt with passing batch files arguments with spaces, quotes, percents, and slashes and all sorts of combinations of them. Usually I managed to figure out how to accomplish what I want, but this time I am stuck. I have tried a couple of hundred combinations now and my head is starting to hurt. I’ve reduced the problem to a—fairly—simple requirement: pass from one batch file to another, an argument that contains some space-delimited text, one of which is a quoted space . That is, one batch file should pass some string X to another so that the the second one echos "A "B

Bash — Rsync variable in filename has spaces

眉间皱痕 提交于 2019-12-07 18:09:51
问题 Been searching for hours and still cant figure this out :( Anyway, im creating a script that will automatically rsync about 40 different directories to 40 other directories on another server. if you want to see the entire script you can view it here: http://pastebin.com/Nt3KKvx9 But the important bit is the for loop where i run rsync for ((i=0; i<${#websys[@]}; i++)) do localpath="/nusdata/staff/NUS/NUS/Systems/${kiskasys[$i]}" remotepath="/home/www/html/nusalaska.com/html/systems/${websys[$i

git-svn dcommit fails because the repository name contains a space

眉间皱痕 提交于 2019-12-07 17:38:53
问题 When attemping to git svn dcommit to a repository that has spaces in it's name, I get the following error: Committing to http://svn.kuluvalley.com/Meet the Expert/trunk ... http://svn.kuluvalley.com/Meet the Expert/trunk Filesystem has no item: '/!svn/bc/7397/Meet' path not found at /usr/libexec/git-core/git svn line 592 It looks like git svn doesn't support directories with spaces in them. 回答1: I believe the problem with spaces is fixed in Git >= 1.8.0 (See: #786942). So you should consider

Bash escaping spaces in filename, in variable

随声附和 提交于 2019-12-07 11:59:06
问题 I'm quite new to Bash so this might be something trivial, but I'm just not getting it. I'm trying to escape the spaces inside filenames. Have a look. Note that this is a 'working example' - I get that interleaving files with blank pages might be accomplished easier, but I'm here about the space. #! /bin/sh first=true i=combined.pdf o=combined2.pdf for f in test/*.pdf do if $first; then first=false ifile=\"$f\" else ifile=$i\ \"$f\" fi pdftk $ifile blank.pdf cat output $o t=$i i=$o o=$t break

Inno Setup, spaces and double quote in [Run]

五迷三道 提交于 2019-12-07 06:30:23
问题 I'm trying to schedule a task on Windows, and unfortunately, it doesn't work! The task is created but not correctly. When I look into task's parameters, it says: PROGRAM: C:\Program ARGUMENTS: Files(x86)\AppName\executable.exe This is how I proceed: [Run] Filename: "schtasks.exe"; Parameters: "/create /tn TaskName /sc MINUTE /mo 10 /tr ""{app}\{#MyAppExeName}"""; And I don't know why it doesn't work, doubles quotes should fix the "spaces problem" Any ideas? 回答1: This problem is known and is

Trim function does not remove spaces at end of a string while comparing two strings in vbs

陌路散爱 提交于 2019-12-06 13:33:40
I have a simple script which takes two strings and compare them. The first one has a space at the end and the second does not have that. Function compare(str1,str2) dim a If strComp(trim(str1),trim(str2))=0 Then msgbox "OK" a=1 Else msgbox "KO" a=0 End If compare=a End Function I use this function in this way: s1= SUCCESSFULLY CONNECTED s2= SUCCESSFULLY CONNECTED result=compare(s1,s2) The difference between s1 and s2 is that s1 ends with a single space while s2 does not have any space at the end. This why I use the Trim function to ignore that space. Despite that, for s1 and s2, I always get

std::cin skips white spaces

风格不统一 提交于 2019-12-06 02:16:34
问题 So I am trying to write a function to check whether a word is in a sentence, by looping through a char array and checking for the same string of char's. The program works as long as the Sentence doesn't have any spaces. I googled around and they are all the same suggestions; cin.getline But however I implement it, it either doesn't run or skips the entire input and goes straight towards the output. How can I account for spaces? #include <iostream> using namespace std; bool isPartOf(char *,

HTML equivalent to   …that DOES break;

拟墨画扇 提交于 2019-12-06 00:12:11
问题 If I want to force two visually displayed two spaces I can do this: FOO BAR  FOO BAR This would sidestep HTML's whitespace collapsing feature, but it also would result in line breaks like this: FOO BAR  FOO BAR Is there a replacement that would act like a regular space that does break? Here's pseudo code for what I'm asking: FOO BAR&bsp;&bsp; FOO BAR ps: I know this can be done with CSS. Not not what I'm interested in here. 回答1: If you want a wider-than-normal space that doesn't prevent line

git-svn dcommit fails because the repository name contains a space

筅森魡賤 提交于 2019-12-05 22:02:27
When attemping to git svn dcommit to a repository that has spaces in it's name, I get the following error: Committing to http://svn.kuluvalley.com/Meet the Expert/trunk ... http://svn.kuluvalley.com/Meet the Expert/trunk Filesystem has no item: '/!svn/bc/7397/Meet' path not found at /usr/libexec/git-core/git svn line 592 It looks like git svn doesn't support directories with spaces in them. I believe the problem with spaces is fixed in Git >= 1.8.0 (See: #786942 ). So you should consider to upgrade it. See GitHub Home page: https://github.com/git/git Karl I was able to work around the problem

Bash — Rsync variable in filename has spaces

帅比萌擦擦* 提交于 2019-12-05 21:51:17
Been searching for hours and still cant figure this out :( Anyway, im creating a script that will automatically rsync about 40 different directories to 40 other directories on another server. if you want to see the entire script you can view it here: http://pastebin.com/Nt3KKvx9 But the important bit is the for loop where i run rsync for ((i=0; i<${#websys[@]}; i++)) do localpath="/nusdata/staff/NUS/NUS/Systems/${kiskasys[$i]}" remotepath="/home/www/html/nusalaska.com/html/systems/${websys[$i]}" rsync -rlptnvz -s "$localpath" -e "ssh -p 50014" "nusak@webserver:$remotepath/" done The problem is