"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