title: How to get all input inside quote into variable
body: <p>I want to insert into variable anything I send inside <code>"</code>.</p>
  
  <p>For example:</p>
  
  <p><code>check.sh</code>:</p>
  
  <pre><code>#!/bin/bash
  ./b.sh -a "$@"
  </code></pre>
  
  <p><code>b.sh</code>:</p>
  
  <pre><code>#!/bin/bash
  
  while getopts ":a:b:c:" opt; do
    case ${opt} in
          a) A="$OPTARG"
  ;;
          b) B="$OPTARG"
  ;;
          c) C="$OPTARG"
  ;;
          :) echo "bla"
  exit 1
  ;;
  esac
  done
  
  echo "a: $A, b: $B, c: $C"
  </code></pre>
  
  <p>Run #1:
  Desired result:</p>
  
  <pre><code>user@host $  ./check.sh -a asd -b "asd|asd -x y" -c asd
  a: -a asd -b "asd|asd -x y" -c asd, b: ,c: 
  </code></pre>
  
  <p>Actual result:</p>
  
  <pre><code>user@host $  ./check.sh -a asd -b "asd|asd -x y" -c asd
  a: -a, b: , c:
  </code></pre>
  
  <p>Run #2:
  Desired result:</p>
  
  <pre><code>user@host $ ./check_params.sh -a asd -b asd|asd -c asd
  a: -a asd -b asd|asd -c asd, b: ,c:
  </code></pre>
  
  <p>Actual result:</p>
  
  <pre><code>user@host $ ./check_params.sh -a asd -b asd|asd -c asd
  -bash: asd: command not found
  </code></pre>