diff --git a/tzselect.ksh b/tzselect.ksh index a4db7c7..3e74b10 100644 --- a/tzselect.ksh +++ b/tzselect.ksh @@ -289,5 +289,17 @@ Universal Time is now: $UTdate." do : done -# Output the answer. +case $SHELL in +*csh) file=.login line="setenv TZ '$TZ'";; +*) file=.profile line="TZ='$TZ'; export TZ" +esac + +echo >&2 " +You can make this change permanent for yourself by appending the line + $line +to the file '$file' in your home directory; then log out and log in again. + +Here is that TZ value again, this time on standard output so that you +can use the $0 command in shell scripts:" + echo "$TZ"