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] Bashing away at Unix
- Date: Tue, 18 Mar 2008 17:48:52 +0900
- From: Dave Brown <dagbrown@example.com>
- Subject: Re: [tlug] Bashing away at Unix
- References: <78d7dd350803140132x36ca0133m915dd9dee59b24b7@mail.gmail.com> <87y78lskxz.fsf@uwakimon.sk.tsukuba.ac.jp> <78d7dd350803140257t3a3fdbbat913b079a795a425a@mail.gmail.com> <ed10ee420803140322t5a6aeb95tcdece78abbc6dd62@mail.gmail.com> <d8fcc0800803140409j7f824076v2a5f47c5ad4e7ede@mail.gmail.com> <20080314125741.GB41009@mail.scottro.net> <20080314143555.GA21970@phb> <ed10ee420803142353s7a80d186s8ca97b6b98e15c7c@mail.gmail.com> <20080317121101.GA24196@phb> <20080318093220.23c224b6.attila@kinali.ch>
- User-agent: Mutt/1.5.17 (2007-11-01)
On Tue, Mar 18, 2008 at 09:32:20AM +0100, Attila Kinali wrote: > On Mon, 17 Mar 2008 21:11:01 +0900 > Dave Brown <dagbrown@example.com> wrote: > > > On Fri, Mar 14, 2008 at 10:53:51PM -0800, SL Baur wrote: > > > You did not mention white space protection - use of "$@", > > > > Don't you mean "${1+$@example.com"? > > What the heck does that do? I actually fatfingered it. It should be: ${1+"$@"} Which is an overparanoidism for "$@". Some ancient Bourne shells, upon being presented with "$@" and no actual arguments, will expand that as "" and not, as you might hope, an empty list. So ${1+"$@"} tests to see if $1 is non-null, and if so, expands "$@". --Dave
- Follow-Ups:
- Re: [tlug] Bashing away at Unix
- From: SL Baur
- References:
- Re: [tlug] Bashing away at Unix
- From: Nguyen Vu Hung
- Re: [tlug] Bashing away at Unix
- From: Stephen J. Turnbull
- Re: [tlug] Bashing away at Unix
- From: Nguyen Vu Hung
- Re: [tlug] Bashing away at Unix
- From: SL Baur
- Re: [tlug] Bashing away at Unix
- From: Josh Glover
- Re: [tlug] Bashing away at Unix
- From: Scott Robbins
- Re: [tlug] Bashing away at Unix
- From: Dave Brown
- Re: [tlug] Bashing away at Unix
- From: SL Baur
- Re: [tlug] Bashing away at Unix
- From: Dave Brown
- Re: [tlug] Bashing away at Unix
- From: Attila Kinali
Home | Main Index | Thread Index
- Prev by Date: Re: [tlug] The Mother of All (bash) Commands
- Next by Date: [tlug] Eee PC Japan
- Previous by thread: Re: [tlug] Bashing away at Unix
- Next by thread: Re: [tlug] Bashing away at Unix
- Index(es):
Home Page Mailing List Linux and Japan TLUG Members Links