[cs615asa] about shell

曹勇 ycao18 at stevens.edu
Tue Apr 26 19:02:55 EDT 2016


I just find http://www.shellcheck.net <http://www.shellcheck.net/> is an awesome website for learning shell.
But it recommend use double quote for most case when I use ‘$'

$ shellcheck myscript
 
Line 1: <>
ssh $EC2_BACKUP_FLAGS_SSH -o StrictHostKeyChecking=no -v ubuntu@$EC2_HOST \
    ^-- SC2086 <https://github.com/koalaman/shellcheck/wiki/SC2086>: Double quote to prevent globbing and word splitting.
                                                                ^-- SC2086 <https://github.com/koalaman/shellcheck/wiki/SC2086>: Double quote to prevent globbing and word splitting.

We really need use double quote in this case?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.stevens.edu/pipermail/cs615asa/attachments/20160426/7f8b5bad/attachment.html>


More information about the cs615asa mailing list