Mailing List Archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [tlug] Bourne / bash problem

somewhere, I cannot escape the end-of line:
   a-command \
   # a comment \
   another-command  #  another comment \

Do you think there would be a way to include comments in such a situation?

According to my "Portable Shell Programming" book. These situations will not work with comments:

echo "This will not work."   \<space>
echo "This will not work."   \ # Comment
echo "This will not work."   # Comment   \

The above mentioned book is based around the borne shell (sh) but I don't think that bash changed any rules around comments.

Romeo Theriault
System Administrator
Information Technology Services

Home | Main Index | Thread Index

Home Page Mailing List Linux and Japan TLUG Members Links