Search Results

Search: Posts Made By: pooryorick
5,409
Posted By pooryorick
Too many layers
No need for all the extra layers. On my machine, the following does the same thing:

$ cmd1="ps -efwww | grep sbin"
$ cmd2="bash -c '$cmd1'"
$ results=$(ssh -q myhost "$cmd2")or simply

$...
40,000
Posted By pooryorick
fabricated output?
In the following line, the quotes are no-ops.

eval "ZONENAME=\$zone$ZONENUM"They get stripped away, resulting in the following line, which eval then interprets:

ZONENAME=$zonezndvux02Even if...
37,897
Posted By pooryorick
The details
>So: the 'eval' do NOT evaluates value in double quotations or after backslash, but removes that quotations and backslashes!

Not exactly. Remember, the shell parses the entire line one time...
Showing results 1 to 3 of 3

 
All times are GMT -4. The time now is 03:11 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy