delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/04/23/17:04:42

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
Message-ID: <094EA76FEAA4D411968100508BD8BBF3020F51@EQUATOR>
From: "Andrew Maguire (SWW)" <Andrew DOT Maguire AT Smallworld DOT co DOT uk>
To: "'Kai DOT Grossjohann AT cs DOT uni-dortmund DOT de'"
<Kai DOT Grossjohann AT cs DOT uni-dortmund DOT de>,
mah AT everybody DOT org, ntemacs-users AT cs DOT washington DOT edu
Cc: Keith Amidon <camalot AT picnicpark DOT org>,
"rcp.el mailing list"
<emacs-rcp AT amaunet DOT cs DOT uni-dortmund DOT de>,
cygwin AT cygwin DOT com
Subject: RE: tramp on NT emacs
Date: Mon, 23 Apr 2001 22:03:08 +0100
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2650.21)

> /----
> | revision 1.312
> | date: 2000/05/12 21:04:20;  author: grossjoh;  state: Exp;  
> lines: +19 -4
> | Don't use "set +o history 1>/dev/null 2>/dev/null".  AIX chokes on
> | redirecting stderr here?!
> \----
> 
> Isn't that nice?  So.  Can we be sure that `ls' is never a shell
> builtin, and that doing "2>/dev/null" on those commands never fails?
> I think we cannot be sure.  (And also, the exit status of `cd' is
> sometimes queried, and that's always a shell builtin.)
> 
> Does anybody have a suggestion?
I have absolutely no idea what you are trying to solve ;-)
but you might like to try:

set +o history 1>/dev/null 2>&1

You may need to do it this way around:

set +o history 2>&1 1>/dev/null

Andrew

--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019