Date: Fri, 02 Jul 2010 07:01:22 -0700 From: merlyn@stonehenge.com (Randal L. Schwartz) To: Aiza <aiza21@comclark.com> Cc: Chip Camden <sterling@camdensoftware.com>, "questions@freebsd.org" <questions@freebsd.org> Subject: Re: Bourne .sh ? Message-ID: <86pqz6ugnh.fsf@red.stonehenge.com> In-Reply-To: <4C2D5F58.3050708@comclark.com> (Aiza's message of "Fri, 02 Jul 2010 11:39:04 %2B0800") References: <4C2D2839.3040909@comclark.com> <20100702000124.GG19474@libertas.local.camdensoftware.com> <4C2D5F58.3050708@comclark.com>
next in thread | previous in thread | raw e-mail | index | archive | help
>>>>> "Aiza" == Aiza <aiza21@comclark.com> writes: Aiza> Wow do I feel stupid. You saw through my question to the underlying problem Aiza> causing the need to strip off that stuff. I just changed the command from ls Aiza> -l to ls -1 and got what I wanted in the first place. I'm surprised how often -1 is used when not needed. ls is smart, and automatically defaults to -1 if the output isn't a terminal. Consider the difference between: $ ls and $ ls | cat Back in the day, before the boys at Berkeley added multicolumn output, there was a concern that changing the format of `ls` would break a lot of scripts, so they were careful to do it in a backward-compatible mechanism. -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 <merlyn@stonehenge.com> <URL:http://www.stonehenge.com/merlyn/> Smalltalk/Perl/Unix consulting, Technical writing, Comedy, etc. etc. See http://methodsandmessages.vox.com/ for Smalltalk and Seaside discussion
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?86pqz6ugnh.fsf>