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] "How to"
- Date: Sat, 17 May 2014 21:11:03 +0900
- From: "Stephen J. Turnbull" <stephen@example.com>
- Subject: Re: [tlug] "How to"
- References: <CAJA1Y2bTWLWhb0tcuZyeJQDXtAXsGRdyUw_T_Ft7sZ_W6nXhLQ@mail.gmail.com> <537162A7.5090009@extellisys.com> <877g5qfidc.fsf@uwakimon.sk.tsukuba.ac.jp> <CAJA1Y2a9+YBtoB0Yv57BL=a=t8DBTyhT05F5cokhVocJmEa=hg@mail.gmail.com>
Bruno Raoult writes: > On Tue, May 13, 2014 at 5:49 AM, Stephen J. Turnbull <stephen@example.com> wrote: > > Ctrl-V <RET> is a useful trick in bash, at least (bash treats it like a > > semicolon AFAICT). > > Same as here??? > > $ echo foo^Mecho bar > echo bar > $ echo foo; echo bar > foo > bar No, I was talking about in the context of a code block (such as a loop or a function body). I think it looks better than a long line broken by colons. I don't see when it would be useful for standalone commands. > > Splitting lines with \ <RET> is also occasionally > > useful (but I forget how it interacts with things like strings). > > Easy: It just escapes nest character special meaning: > $ echo foo\ > > bar > foobar That's not a string. I'm talking about the things bounded by pairs of " or '. > Not sure to understand again: > > $ myfunc() { > > echo $1 > > } I'm not sure what happened there. I tried it again, and you're right, it does treat it as continuation.
- Follow-Ups:
- Re: [tlug] "How to"
- From: Bruno Raoult
- References:
- [tlug] "How to"
- From: Bruno Raoult
- Re: [tlug] "How to"
- From: Travis Cardwell
- Re: [tlug] "How to"
- From: Stephen J. Turnbull
- Re: [tlug] "How to"
- From: Bruno Raoult
Home | Main Index | Thread Index
- Prev by Date: Re: [tlug] Poll: OpenOffice or LibreOffice?
- Next by Date: Re: [tlug] Poll: OpenOffice or LibreOffice?
- Previous by thread: Re: [tlug] "How to"
- Next by thread: Re: [tlug] "How to"
- Index(es):
Home Page Mailing List Linux and Japan TLUG Members Links