[juneau-lug] Re: aliases

  • From: James Zuelow <James_Zuelow@xxxxxxxxxxxxxxx>
  • To: "'juneau-lug@xxxxxxxxxxxxx'" <juneau-lug@xxxxxxxxxxxxx>
  • Date: Wed, 24 Nov 2010 10:39:07 -0900

----Original Message----
From: juneau-lug-bounce@xxxxxxxxxxxxx
[mailto:juneau-lug-bounce@xxxxxxxxxxxxx] On Behalf Of James Zuelow
Sent: Wednesday, November 24, 2010 10:32 AM To:
'juneau-lug@xxxxxxxxxxxxx' Subject: [juneau-lug] Re: aliases

> I edited it and cut off the last pipe with tail, and I find that the
> grep -v and cut commands are just ignored. 
> 

Darn it, this is twice I've had to correct a message.  I had a typo in my edit 
-- the grep and cut commands DO work in the alias, it is just the tail command 
that doesn't.

So again, I think the pipe works differently in a bash alias than it does when 
you create one interactively.

The problems in this thread have been with head and tail (which are really the 
same thing) not seeing what it likes from the pipe.  So the output is different 
when the pipe is in an alias somehow, breaking some programs -- you'd have to 
dig into the bash internals to find out why.

James Zuelow
Network Specialist
City and Borough of Juneau MIS
(907) 586-0236------------------------------------
The Juneau Linux Users Group -- http://www.juneau-lug.org
This is the Juneau-LUG mailing list.
To unsubscribe, send an e-mail to juneau-lug-request@xxxxxxxxxxxxx with the 
word unsubscribe in the subject header.

Other related posts: