From: Paul Stewart <stewart@chopin.ecse.rpi.edu>
To: elessar <elessar@squonk.net>
Cc: zsh-workers@math.gatech.edu
Subject: Re: Wierd problem with functions on Solaris 2.4
Date: Wed, 10 Apr 1996 11:07:05 -0400 [thread overview]
Message-ID: <199604101507.LAA08470@chopin.ecse.rpi.edu> (raw)
In-Reply-To: Your message of "Wed, 10 Apr 1996 09:12:33 EDT." <199604101312.JAA00473@khatru.squonk.net>
In message <199604101312.JAA00473@khatru.squonk.net>, elessar writes:
>I'm not quite certain what happened, so I'm referring this question here to
>see if anyone might know the reason for this strange occurance.
>
>I am using zsh 2.6beta13 on Solaris 2.4, on a Sparc IPC.
>
>I handed zsh the following function:
>
>list() { ps -aux | grep $1 | grep -v grep ; }
>
>and when I attempted to run it, my drive started getting accessed like crazy
>and I was unable to get the machine to respond to any keystrokes or mouse
>clicks, even though I was able to move the pointer around (was in OpenWindows)
>.
>An attempt to login remotely from another machine met with no success, for
>I never received a login prompt.
>
>I am uncertain if this is a problem with zsh, Solaris 2.4, or the function
>itself. Someone else who looked at the function said it _should_ work, but
>of course it didn't. So I'm wondering if anyone here has a clue, and may be
>able to explain the problem to me.
>
Well, for a data point, I got the expected response:
% list() { ps -aux | grep $1 | grep -v grep ; }
% list zsh
ps: unknown user x
% # but then again, my path probably isn't like yours
% list() { /usr/ucb/ps -aux | grep $1 | grep -v grep ; }
% list zsh
# process listing of zsh processes here, and it skips the "grep zsh" proc
% list
Usage: grep -hblcnsviw pattern file . . .
% uname -srm
SunOS 5.5 sun4u
% echo $VERSION
zsh 2.5.03
The function and the greps look normal enough, as long as your shell built
correctly (and that beta is well behaved). I'm also hesitant to fault Sol
2.4's ucb/ps, even with my limited experience with it. Try a non-beta zsh
and see how that works.
--
Paul
next prev parent reply other threads:[~1996-04-10 15:17 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
1996-04-10 13:12 elessar
1996-04-10 15:07 ` Paul Stewart [this message]
1996-04-10 21:41 ` Zoltan Hidvegi
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=199604101507.LAA08470@chopin.ecse.rpi.edu \
--to=stewart@chopin.ecse.rpi.edu \
--cc=elessar@squonk.net \
--cc=stewart@hibp7.ecse.rpi.edu \
--cc=zsh-workers@math.gatech.edu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).