Re: FVWM: fvwm2/twm losing PS1 (environment experiment results)

From: Jose' Manuel Pereira <jmp_at_asterix.ist.utl.pt>
Date: Thu, 5 Nov 1998 05:04:29 +0000 (WET)

"PDS" == Paul D Smith <psmith_at_BayNetworks.COM> writes:

  PDS> The _correct_, always completely accurate, way to test for
  PDS> interactivity in ksh, bash, and zsh is to test the $- option variable
  PDS> to see if it contains "i" or not.

  PDS> The _only_ reason to use PS1 is if you must maintain backward
  PDS> compatibility with older Bourne shells. This should really never be
  PDS> much of a concern in places where you'd expect to see this type of
  PDS> test.

Helas, unfortunately, I tend to step into such vanilla Bourne shells daily...
Mostly at login time. To be "always completely accurate" you _have_ to use it.

And that's for login shells. Now, /bin/sh != /bin/bash, mostly (only in
Linux). zsh, never saw it. ksh, only in my Solaris (since I'm in charge).
Sigh.

(Not to mention the places where you are stuck with a *csh;
 "if ($?prompt == 0)", anyone?)

Now, where's that fvwm 2.1.0 someone mentioned? I missed the announcement.

-- 
 Jose' Pereira				 		Tel. +351.1.841 9340
 DEEC - Dep. of Electrical and Computer Engineering	Fax. +351.1.841 7499
 Instituto Superior Tecnico - Technical University of Lisboa
 Av. Rovisco Pais - 1049-001 Lisboa - Portugal
--
Visit the official FVWM web page at <URL:http://www.hpc.uh.edu/fvwm/>.
To unsubscribe from the list, send "unsubscribe fvwm" in the body of a
message to majordomo_at_hpc.uh.edu.
To report problems, send mail to fvwm-owner_at_hpc.uh.edu.
Received on Wed Nov 04 1998 - 23:04:55 GMT

This archive was generated by hypermail 2.3.0 : Mon Aug 29 2016 - 19:38:01 BST