[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: `which` and infinite recursion



begin  Joseph Barillari  quotation:

> I just switched from Red Hat to Debian and was wondering why any
> invocation of `bash` or `which` caused the forking of hundreds of
> processes and (eventually) the complaint:
> 
> /bin/bash: fork: Resource temporarily unavailable
> 
> I investigated my .bashrc, and found that the offending line was 
> 
> export CVS_RSH=`which ssh`

How about this?

  export CVS_RSH=ssh

There's no need for CVS_RSH to contain a fully-expanded path, and
'which' won't find ssh unless it's on your PATH already, so using
'which' like that really gains you nothing.

Craig

Attachment: pgp_8q0km6Xct.pgp
Description: PGP signature


Reply to: