Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

231
Views
¿Qué es el comando de cotización?

Usando el terminal interactivo de bash, la salida de la quote a es 'a' como se esperaba. Pero la cita no funciona usando bash -c 'quote a' o en un script de shell, dando el error bash: line 1: quote: command not found . quote no es un ejecutable, y no pude encontrar la cita en la referencia incorporada de bash, entonces, ¿de dónde viene este comando?

bashrc:

 # # ~/.bashrc # # If not running interactively, don't do anything [[ $- != *i* ]] && return stty -ixon #source $HOME/.config/xdgrc #source $HOME/.config/aliasrc PS1='\[\033[38;2;50;255;50m\]\u\[\033[0m\]@\[\033[38;2;255;70;70m\]\h\[\033[0m\]:\w\[\033[38;2;50;255;50m\]\$\[\033[0m\]> '
over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

quote es una función auxiliar en /usr/share/bash-completion/bash_completion :

 # This function shell-quotes the argument quote() { local quoted=${1//\'/\'\\\'\'} printf "'%s'" "$quoted" }

No lo usaría ya que solo está disponible en shells interactivos cuando la finalización está habilitada.

Si desea escapar de los caracteres especiales en un script, puede usar ${var@Q} o printf %q en su lugar.

 $ wendys="Where's the beef?" $ echo "${wendys@Q}" 'Where'\''s the beef?' $ printf '%q\n' "$wendys" Where\'s\ the\ beef\?
over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!