quoting Questions

5

I'm trying to call popen() using mingw like this: #define RUN_COMMAND "\"C:\\Program Files\\CA\\BrightStor ARCserve Backup\\ca_qmgr.exe\" \"-list\"" int main() { outputPointer = popen(RUN_COMMAND...
Archicarp asked 12/10, 2009 at 21:39

1

Solved

How to pass a string with spaces to a command which returns itself a string with spaces? I tried the following four versions. arg='one arg' arg() { echo "arg: $1"; } printf '1 |%s|\n' $(arg "$a...
Tincher asked 7/3, 2017 at 15:30

2

Solved

I want to store /c/users/me/dir name into a variable to pass it to cd system call. Works when typing: $ cd '/c/users/me/dir name' or $ cd /c/users/me/dir\ name but does not works if I store i...
Regulator asked 2/2, 2017 at 5:47

2

I've googled and tried so many things and never could get anything to work with ${parameter@operator}. All I find is more links to the same documentation. So I think a proper answer with practical ...
Warranty asked 22/11, 2016 at 1:6

2

Solved

I'm getting some troubles to use a password with special characters such as $ in a bash shell script. My shell script is : read -s -p "Password : " bindDNPass ldapadd -H ldap://localhost -x -w $...
Selfsown asked 21/1, 2017 at 17:16

2

Solved

I'm contemplating to make all bash scripts of a large codebase shellcheck compliant, but the task is overwhelming, because too many developers have historically ignored rule number one of all shell...
Thirddegree asked 12/12, 2016 at 15:27

2

Solved

So I have a problem below, but my question is more generic - how to see exact content of memory referenced by bash variable to understand why they don't match: # [[ $c1 == $c ]] || echo nope nope ...
Familist asked 31/12, 2016 at 15:10

3

I'm trying to understand why Bash removes double quotes (but not single quotes) when doing variable expansion with ${parameter:+word} (Use Alternate Value), in a here-document, for example: % var=...
Saporific asked 6/12, 2016 at 12:32

1

Solved

Could someone lay out clearly the various quoting mechanisms available for metaprogramming in Julia, and illustrate each one with a minimal example? So that it is clear which to use in which situa...
Schramke asked 11/12, 2016 at 17:35

2

Solved

I am issuing a curl command that would ideally look like this (note that this is incorrect due to lack of escaping): curl -X POST --data-urlencode 'payload={"channel": "@somebody", "text": "...
Hesitate asked 10/8, 2016 at 14:25

2

Solved

I googled a lot but.. How do I escape single quote in command line query of psql ? psql -t -A -F $'\t' postgresql://zzzz:5432/casedb -U qqqq -c 'select id,ext_ids ->> 'qwe' as qwe from data...
Support asked 29/7, 2016 at 11:38

1

Solved

I know there are lots of posts regarding this, but nothing worked for me. I am trying to run this command line in PowerShell: C:/Program Files (x86)/ClamWin/bin/clamd.exe --install I have this ...
Buenabuenaventura asked 27/6, 2016 at 22:59

2

I have a file that looks like: 'colA'|'colB' 'word"A'|'A' 'word'B'|'B' I want to use pd.read_csv('input.csv',sep='|', quotechar="'") but I get the following output: colA colB word"A A wordB' B ...
Midwife asked 2/6, 2016 at 10:52

1

Solved

I have a .text file with following format, where fields (index number, name and message) are separated by \t (tab-separated): 712 ben Battle of the Books 713 james i used to be in TOM 714 tomy i w...
Hortensiahorter asked 24/2, 2016 at 9:32

1

Solved

There a very handy function in Python: repr() which when applied on a string containing blank characters will print out a representation of that string that cannot lead to any human misinterpretati...
Shend asked 12/9, 2015 at 20:25

3

Solved

I'm having trouble forming a bash array from a standard output. I've boiled it down to this minimal example: ~$ a=($(echo '1 2 3 "foo bar"')) ~$ echo ${a[0]} 1 ~$ echo ${a[1]} 2 ~$ echo ${a[2]} 3 ...
Aideaidedecamp asked 6/3, 2015 at 15:1

1

Solved

I want to apply the same aggregation to multiple data tables, without rewriting the aggregation scheme. Consider dt1 <- data.table(id = c(1,2), a = rnorm(10), b = rnorm(10), c = rnorm(10)) dt2...
Madra asked 26/2, 2015 at 23:2

2

Solved

Consider the following: #!/bin/tcsh set thing = 'marker:echo "quoted argument"' set a = `echo "$thing" | sed 's/\([^:]*\):\(.*\)/\1/'` set b = `echo "$thing" | sed 's/\([^:]*\):\(.*\)/\2/'` echo ...
Suzan asked 4/12, 2014 at 22:13

8

Solved

Is there anything in the Python standard library that will properly parse/unparse strings for using in shell commands? I'm looking for the python analog to perl's String::ShellQuote::shell_qu...
Freehearted asked 8/6, 2009 at 22:56

1

Solved

I am using Seqeulize with Nodejs. My table name is "Users" and it has a column "userName". I have named the ts vectored column userNameVector. In trying to create the column and set the triggers, ...
Pastorale asked 5/8, 2014 at 16:11

2

Solved

I am trying to write a select query which should return the column value wrapped in single quote. Say the column (ABC) has Values: 123 567 The query should return the Output: '123' '567'
Tidbit asked 5/8, 2014 at 15:56

2

Solved

Why does the string for the -split parameter require two backslashes while the string for the -join parameter requires only one backslash? The backtick is the escape character in Powershell. What d...
Wamsley asked 23/6, 2014 at 20:29

7

Solved

I'm looking for something that will translate a string as follows, using only bash / standard Linux commands: Single-quotes surrounding a string should be removed Double-quotes surrounding a stri...
Robbins asked 16/4, 2009 at 21:2

1

Solved

I've cobbled together what is below, and it seems to work, with the possible exception of the "! -empty". One thing I'm learning (as I go) is that just because something works, doesn't mean it's ri...
Donatello asked 21/6, 2014 at 6:1

5

Solved

I now develop websites and XML interfaces since 7 years, and never, ever came in a situation, where it was really necessary to use the > for a >. All disambiguition could so far be handle...
Pleader asked 25/8, 2010 at 14:41

© 2022 - 2024 — McMap. All rights reserved.