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 23:07:24 -0800
- From: "SL Baur" <steve@example.com>
- Subject: Re: [tlug] Bashing away at Unix
- References: <78d7dd350803140132x36ca0133m915dd9dee59b24b7@mail.gmail.com> <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> <20080318084850.GA10549@phb>
On 3/18/08, Dave Brown <dagbrown@example.com> wrote: > 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 "$@". Ah, I learned something new. I owe you a beer the next time we're adjacent in meatspace. -sb
- References:
- Re: [tlug] Bashing away at Unix
- From: Nguyen Vu Hung
- 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
- Re: [tlug] Bashing away at Unix
- From: Dave Brown
Home | Main Index | Thread Index
- Prev by Date: Re: [tlug] The Mother of All (bash) Commands
- Next by Date: Re: [tlug] The Mother of All (bash) Commands
- 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