[plug] alias problem

Craig Dyke grail at enterprize.net.au
Tue Jan 14 21:30:30 WST 2003


OK ... understand logic behind that, but, found that I now have a different problem.

It would seem that the | is not my friend.
If I do:	alias md_bz='bzip2 -cd $1'	<-- no problems

but the moment the pipe comes in:
		alias md_bz='bzip2 -cd $1 | md5sum'	<-- or any other command after pipe

I get:		bzip2: I won't read compressed data from a terminal.
		bzip2: For help, type: `bzip2 --help'.

Next suggestion??

Craig
On Tue, 14 Jan 2003 21:10, Russell Steicke wrote:
> On Tue, Jan 14, 2003 at 08:59:00PM +0800, Craig Dyke wrote:
> > Hi All
> >
> > Can someone tell me what I need to put into the following to get it to
> > work?
> >
> >
> > alias md_bz='bzip2 -dc $1 | md5sum | cut -d' ' -f1'
>
> Use double quotes inside the single quotes.  They mean the same in that
> context (quoting a single space).
>
> alias md_bz='bzip2 -dc $1 | md5sum | cut -d" " -f1'



More information about the plug mailing list