On Thu, Jul 05, 2012 at 04:03:38PM -0700, Ethan Jackson wrote:
> > I'm worried about word-splitting on $logdir/$daemon.strace.log
> > (e.g. if $logdir happens to contain a space). I think it would be
> > better to write -o "$logdir/$daemon.strace.log" in the "set" and
> > "strace" commands, just to be sure.
>
> Could I just escape the quotes? i.e:
> strace="strace -tt -T -s 256 -ff -o \"$logdir/$daemon.strace.log\""
I don't think that works:
blp@sigsegv:~/ovs$ p () { for d; do echo $d; done }
blp@sigsegv:~/ovs$ logdir="a b c"
blp@sigsegv:~/ovs$ strace="strace -tt -T -s 256 -ff -o
\"$logdir/$daemon.strace.log\""
blp@sigsegv:~/ovs$ p $strace
strace
-tt
-T
-s
256
-ff
-o
"a
b
c/.strace.log"
blp@sigsegv:~/ovs$
_______________________________________________
dev mailing list
[email protected]
http://openvswitch.org/mailman/listinfo/dev