My new USRobotics Sportster Voice 56K Faxmodem
Joseph Kwok (jkwok@net123.com.hk)
Thu, 16 Apr 1998 11:53:32 +0200
> > No ls option is being used. I tried the above shell commands by hand and get the
> > result that all ls files are in one line and thus I have to count on the number of
> > words instead.
>
> Joseph, ls works different when the output is redirected into a pipe. Try
> this:
>
> ls | less
>
> Do you still get all files in a single line? You shouldn't.
Yes, you are correct, but the behaviour is different when it is assigned to an
environment variable:% ls | more
result multiple lines on screen but
% pages=`ls | more`
% echo $pages
result a single line.
Regards,
Joseph