ksh MAILPATH variable
Jan van der Steen
jansteen at cwi.nl
Thu Mar 16 20:25:27 AEST 1989
We are running ksh version 06/03/86 in a BSD 4.3 environment.
Does anybody have a clue why:
MAILPATH=$MAIL?'$(/bin/mail)'
doesn't work?
According to the man page, ksh echo's the argument following
the question mark while performing parameter and command
substitution.
So $(/bin/mail) should result in executing /bin/mail.
Our version only echo's "$(/bin/mail)"
By the way:
MAILPATH=$MAIL?'You have mail [pwd = $PWD]'
does work.
--
-=-=-=-=-=-=-=-=-=-=-=-=-=--=-=-=-=-=-=-=-=-=-=-=-=-
Jan van der Steen, CWI the Netherlands
jansteen at cwi.nl (or uunet!mcvax!jansteen)
-=-=-=-=-=-=-=-=-=-=-=-=-=--=-=-=-=-=-=-=-=-=-=-=-=-
More information about the Comp.unix.wizards
mailing list