🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.bash.bug
Article #252

Re: rsh, rcp with bash

#252
From: Chip Salzenberg
Date: Mon, 03 Aug 1992 18:39
14 lines
1124 bytes
According to Mark.Bush@prg.ox.ac.UK (Mark Bush):
>If the .bashrc is known to be sourced, I can do things like checking PS1
>to see if I am interactive.

Bash has no way of distinguishing ``my stdin isn't a tty because I'm
an rsh'' and ``my stdin isn't a tty because I'm running under Emacs
and there are no free ptys'' or ``my stdin isn't a tty because a human
being typed "bash -c 'some command' </dev/null" ''.

A bug with a workaround is still a bug.
-- 
Chip Salzenberg at Teltronics/TCT  <chip@tct.com>, <73717.366@compuserve.com>
   "Do Rush place weird subliminal backmasked messages in their songs to
 compel unwilling geeks to commit evil .sig atrocities?"  -- Dean Engelhardt
Technical Details
Message-ID: <2A7D7D50.6FD1@tct.com>
Path: arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!tct.COM!chip
References: <9207241236.AA02088.SM@odin.INS.CWRU.Edu>

Show Full Headers
Complete Article Headers
Newsgroups: gnu.bash.bug
Path: arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!tct.COM!chip
From: chip@tct.COM (Chip Salzenberg)
Subject: Re: rsh, rcp with bash
Message-ID: <2A7D7D50.6FD1@tct.com>
Sender: gnulists@ai.mit.edu
Organization: TC Telemanagement, Clearwater, FL
References: <9207241236.AA02088.SM@odin.INS.CWRU.Edu> 
Distribution: gnu
Date: Mon, 3 Aug 1992 18:39:12 GMT
Approved: bug-bash@prep.ai.mit.edu
Lines: 15