making vars in bash script accessible from shell
Kevin D. Clark
kclark at CetaceanNetworks.com
Thu Nov 7 17:38:22 EST 2002
"Price, Erik" <eprice at ptc.com> writes:
> > [please configure your email program to wrap lines at around 72
> > characters -- thanks...]
>
> I can't seem to find the setting that lets you do that.
> this is MS Outlook 2000. (I kinda hafta use it for work...)
IIRC, Derek Martin (and perhaps others) pointed these out once:
http://www.lemis.com/email/fixing-outlook.html
http://www.slipstick.com/mail1/olinet.htm
> > Is
> >
> > PROMPT_COMMAND='pwd | perl -ne "chomp; print substr(\$_, 0, 30);"'
> >
> > what you want?
>
> I'm sure that would work, but I was looking for an all-bash
> solution (for pedagogical reasons).
Bah! Well, here's a non-Perl solution.
PROMPT_COMMAND='expr `pwd` : "\(..............................\)" \| `pwd`'
I leave as an excercise to the reader the task of removing the
(probably unwanted) newline that this generates.
Regards,
--kevin
--
Kevin D. Clark / Cetacean Networks / Portsmouth, N.H. (USA)
cetaceannetworks.com!kclark (GnuPG ID: B280F24E)
alumni.unh.edu!kdc
More information about the gnhlug-discuss
mailing list