zsh-workers
 help / color / mirror / code / Atom feed
* Wierd problem with functions on Solaris 2.4
@ 1996-04-10 13:12 elessar
  1996-04-10 15:07 ` Paul Stewart
  1996-04-10 21:41 ` Zoltan Hidvegi
  0 siblings, 2 replies; 3+ messages in thread
From: elessar @ 1996-04-10 13:12 UTC (permalink / raw)
  To: zsh-workers

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.

Thanks for any help.


Ken Lareau
elessar@squonk.net



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Wierd problem with functions on Solaris 2.4
  1996-04-10 13:12 Wierd problem with functions on Solaris 2.4 elessar
@ 1996-04-10 15:07 ` Paul Stewart
  1996-04-10 21:41 ` Zoltan Hidvegi
  1 sibling, 0 replies; 3+ messages in thread
From: Paul Stewart @ 1996-04-10 15:07 UTC (permalink / raw)
  To: elessar; +Cc: zsh-workers

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



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Wierd problem with functions on Solaris 2.4
  1996-04-10 13:12 Wierd problem with functions on Solaris 2.4 elessar
  1996-04-10 15:07 ` Paul Stewart
@ 1996-04-10 21:41 ` Zoltan Hidvegi
  1 sibling, 0 replies; 3+ messages in thread
From: Zoltan Hidvegi @ 1996-04-10 21:41 UTC (permalink / raw)
  To: elessar; +Cc: zsh-workers

> 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).


I have a psgrep alias which I've been using on Solaris 2.4 regularily for
nearly a yer now.  I always use the most recent beta with my patches and I
never had any problems.  Here is the function I use:

psgrep  () {
	ps auwwx | egrep "(${*:-.})|^USER  " |
	egrep -v 'ps auwwx$|egrep .*\|.USER' | more
}

/usr/ucb is before /usr/bin and /bin in my path.

Bye,

Zoltan



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~1996-04-10 21:47 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1996-04-10 13:12 Wierd problem with functions on Solaris 2.4 elessar
1996-04-10 15:07 ` Paul Stewart
1996-04-10 21:41 ` Zoltan Hidvegi

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).