Mailing List Archive
tlug.jp Mailing List tlug archive tlug Mailing List Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]Re: [tlug] Bourne / bash problem
- Date: Sun, 5 Apr 2009 08:22:36 +0900
- From: Bruno Raoult <braoult@example.com>
- Subject: Re: [tlug] Bourne / bash problem
- References: <c0f4e2b00904040115k14c6f9dcma0448e9904c8fd2f@example.com> <5ffffd040904040413p5af9e2d6yf82fda9c0397eec1@example.com> <20090404142929.GA28611@example.com>
On Sat, Apr 4, 2009 at 11:29 PM, Dave Brown <dagbrown@example.com> wrote: >> > 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? > > Verified as not working in bash in my own experimentation. It would > seem there's no way of interspersing comments with parameters, except > possibly by (ugly) assigning them to variables and commenting that. Thanks to all. I eventually preferred to "sed" my whole set of commands (assuming there is no "#" character used for anything else that comments). This seems more readable than the "echo" tricks for me. I also avoid the need of "\" at the end of lines. Something like: ( sed -e 's/#.*//' -e 's/$/\\/' << _EOF command --option 1 --option 2 # comment 2 # comment 3 --option 3 _EOF ) | sh br. -- 2 + 2 = 5, for very large values of 2.
- References:
- [tlug] Bourne / bash problem
- From: Bruno Raoult
- Re: [tlug] Bourne / bash problem
- From: Romeo Theriault
- Re: [tlug] Bourne / bash problem
- From: Dave Brown
Home | Main Index | Thread Index
- Prev by Date: Re: [tlug] [Fwd: [Bug 1240] no SCIM applet (for japanese input) for root]
- Next by Date: Re: [tlug] [Fwd: [Bug 1240] no SCIM applet (for japanese input) for root]
- Previous by thread: Re: [tlug] Bourne / bash problem
- Next by thread: [tlug] Bourne / bash problem
- Index(es):
Home Page Mailing List Linux and Japan TLUG Members Links