Questions tagged [backticks]

For questions relating to the backtick character (`), also known as the backquote, which has various special meanings in computing.

A backtick or backquote or grave accent is the character,

       `

On British and American QWERTY keyboards, this is located in the upper left corner, next to the 1 key. It is notoriously difficult to type on some European keyboards, requiring up to four keystrokes.

Backticks were introduced by Unix shells to run a sub-shell. The concept has been adopted by other languages and tools such Perl, PHP, Ruby, and Make. The newer alternative syntax $(<command>) in POSIX-compliant shells is more flexible as it allows nesting.

In Python 2, backticks enclose an expression to be evaluated and converted to its string representation. This feature was removed in Python 3, as it was deemed not sufficiently beneficial to warrant the syntax. The same effect can be accomplished with repr() instead.

In Markdown, backticks are used as a shorthand for emitting <code></code> tags in HTML.

In TeX typesetting, a backtick renders as an opening curly quote (‘).

In the programming languages D and Go, backticks surround string literals.

Further uses of backticks in computing can be found in the Wikipedia article on the grave accent.

311 questions
0
votes
1 answer

Back-ticks in FTL

I was wondering if it is appropriate to use back-ticks (`) in (Freemarker template language) FTL template. The FTL documentation https://freemarker.apache.org/docs/dgui_template_exp.html doesn't say anything about back-ticks. But if used in script…
Najiba Halim
  • 130
  • 1
  • 1
  • 7
0
votes
1 answer

Perl with backticks - I do not understand the operation inside the backticks

I'm a perl novice. What's happening inside the backticks of the following? $selfext and $banner are previously defined. The statement below is executed in Linux and I don't understand where the banner function is coming from? When I print $_ I get…
BilgeRat
  • 1
  • 1
0
votes
0 answers

Need a little help nesting variables in ES6 backticks

I am trying to dynamically create a html UL with my own json data and a map function incorporating js ES6 backticks. I am almost there but I'm stuck with nesting a value in a variable. I have tried escaping the nested tool but no success let…
Al_Smith
  • 13
  • 5
0
votes
2 answers

Add shortcut to :term in vim

I recently discovered vim has :term command to open terminal inside vim. I want to create a keyboard shortcut of Ctrl+` just like in visual studio code. But :map :term doesn't do anything. Can anybody help. I am on windows using gvim.
Kshitij Dhakal
  • 816
  • 12
  • 24
0
votes
1 answer

select clause with backticks

Select t1.cust_id, `(cust_id|as_of_dt|pref.*|interest.*|incentive|currency)?+.+` from TAB1 t1 left join TAB2 t2 on (t1.key1 = t2.key1) and (t1.key2 = t2.key2); There is a starting backtick just before (cust_id... and ending backtick…
Don Sam
  • 525
  • 5
  • 20
0
votes
1 answer

backtick preparedStatement Java

I am having difficulty with the following statement that I want to send to the MySQL server: UPDATE abonament SET ? = '1' WHERE abonutid = ? And I replace them with: ps.setString(1, "`" + (indexLunaPlatita + 1) + "`"); ps.setInt(2, selVal); But…
0
votes
2 answers

CakePHP ODBC driver connecting to Microsoft SQL Server; how to remove backticks?

I've got a CakePHP application connecting to a remote MSSQL server through ODBC, but it's not working as planned. Every query dies becasue it is trying to put backticks around identifiers, which is not correct for MSSQL. As an example, I have a…
death_au
  • 1,282
  • 2
  • 20
  • 41
0
votes
1 answer

arsort does not give the expected result

$a=array('a'=>'`a:1:`','b'=>'`a:`','c'=>'`a:0:`'); arsort($a); print_r($a); I expect this code to output Array ( [a] => `a:1:` [c] => `a:0:` [b] => `a:` ) but it actually outputs Array ( [b] => `a:` [a] => `a:1:` [c] =>…
guigoz
  • 674
  • 4
  • 21
0
votes
1 answer

Convert DER key (with pass phrase) to PEM with ruby

I use this openssl command to convert a key file to pem: openssl pkcs8 -inform DER -in LAN7008173R5.key -passin pass:12345678a -out converted_key.pem And when i use cat converted_key.pem I get this (expected result): -----BEGIN PRIVATE…
fvdev
  • 35
  • 8
0
votes
1 answer

Perl CGI Script backticks with root

I wanted to run a Perl CGI script with backticks. EXAMPLE: #!/usr/bin/perl -w use warnings; use strict; use JSON; use CGI; use CGI::Carp 'fatalsToBrowser'; my $cgi = CGI->new; my $result = `lpc status all`; print $cgi->header(-type =>…
Jan Kubik
  • 25
  • 6
0
votes
3 answers

In hugo theme,I want to change markdown single backtick highlight color with css

I am not sure if my question is clear as I have no idea about css. I want to change the markdown single backtick highlight color in Hugo theme. for example This is an example. In the above text "This is an example", the background color is grey and…
Wang
  • 1,314
  • 14
  • 21
0
votes
1 answer

termcap of program executed between backticks

I'm trying to make a C program to select options. It works if I run it this way: ./select choice{1..5} ☐ choice1 ☐ choice3 ☐ choice5 ☐ choice2 ☐ choice4 # outputs "choice1 choice2" on stdout But if I run it between backticks, it's a…
0
votes
1 answer

How can I open a program by pipe and store the output into a variable in Perl?

I have two cols of data. How can I get the min and max values of each column? I'm trying something like: open $in, "|gmt minmax -C"; print $in ...; ... close($in); However, the output will be printed to the screen. How can I store the results in…
mlin
  • 11
  • 1
0
votes
1 answer

Why/How does this code works in ES6 (React)

I'm following a React course and came across this lesson where they import a component from styled-components but what is strange to me is line 4 where they use the backticks interpolation without enclosing it in parenthesis and it seems it should…
juliangonzalez
  • 4,231
  • 2
  • 37
  • 47
0
votes
1 answer

single backtick code not shown in jekyll github blog

i'm trying to display a code block with a grey background on sudo visudo and /etc/visudo. i think it's working on github page, but when take a look in jekyll it is not working as the way i expected. this is my code in .md file: type `sudo visudo`…
JW_
  • 3
  • 3