Re: bash shows an error message about unpaired quotes, but they are paired

2018-03-27 Thread Greg Wooledge
On Mon, Mar 26, 2018 at 09:54:21PM +0200, f.de.kru...@gmail.com wrote: > #!/bin/bash > > run () { >echo "Running: ${*}" >eval ${*} If you're going to do it this way, that should be eval "$*" with the quotes. I strongly recommend NOT attempting this. If anything, this way would be sli

Re: bash shows an error message about unpaired quotes, but they are paired

2018-03-27 Thread Chet Ramey
On 3/26/18 3:54 PM, f.de.kru...@gmail.com wrote: > run 'sed -i "6a\find /srv/cowrie/log/ -mtime +7 -name \'cowrie.*\' -delete" > cowrietest' Just so you understand how the quoting works here: you can't escape single quotes with backslashes inside a single-quoted string. The \'cowrite.*\' ends th