🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.amiga.tech
Article #13981

ASH piping and aliases

#13981
From: cs121jj
Date: Fri, 02 Mar 1990 01:40
20 lines
1101 bytes
How do you specify piping within an alias?

In WShell, this works just as expected:

        alias ls LITERAL dir | less
                or
        alias ls="dir | less"

but this does not work at all in ASH (the ARP shell):

        alias ls=dir | less

the pipe gets parsed first (even though the alias is a valid command and is
the first command on the line!) and you end up with an empty less window
waiting for you to hit 'q' to get out of less.  This leads me to believe that
piping is either not complete in ASH, or ASH doesn't like piping in an alias.

All I wanted to do was to send the output of dir to less so I can view it
easily.  Is that too much to ask?
Technical Details
Message-ID: <15600003@ux1.cso.uiuc.edu>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!samsung!brutus.cs.uiuc.edu!ux1.cso.uiuc.edu!ux1.cso.uiuc.edu!cs121jj

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!samsung!brutus.cs.uiuc.edu!ux1.cso.uiuc.edu!ux1.cso.uiuc.edu!cs121jj
From: cs121jj@ux1.cso.uiuc.edu
Newsgroups: comp.sys.amiga.tech
Subject: ASH piping and aliases
Message-ID: <15600003@ux1.cso.uiuc.edu>
Date: 2 Mar 90 01:40:08 GMT
Lines: 20
Nf-ID: #N:ux1.cso.uiuc.edu:15600003:000:669
Nf-From: ux1.cso.uiuc.edu!cs121jj    Mar  1 14:52:00 1990