V
V
volandkh2014-12-18 20:00:35
linux
volandkh, 2014-12-18 20:00:35

Why doesn't the echo command in kali-linux stop at a closing quote and take the following lines as output parameters?

Friends, tell me.
There are two versions of the distribution kit for different platforms and one script.
Versions are as follows:

Linux kali-kr 3.14-kali1-686-pae #1 SMP Debian 3.14.5-1kali1 (2014-06-07) i686 GNU/Linux

Linux kali 3.12.26 #1 PREEMPT Thu Aug 21 20:47:35 EDT 2014 armv6l GNU/Linux

ARM version runs on raspberry pi. The script works fine on desktop version, but not on raspberry.
I found out - everything rests on the fact that one echo "text""eats" the following commands in the script, that is, the output does not stop at the closing quote.
An attempt to replace echo with printf did not work, since the script stops at the first such command.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
J
jcmvbkbc, 2014-12-19
@jcmvbkbc

I found out that everything rests on the fact that one echo "text" "eats" the following commands in the script, that is, the output does not stop at the closing quote.

A piece of script with such behavior would not hurt to bring.

V
Vladislav, 2014-12-18
@click0

Try single quotes.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question