bash question

Jerry Feldman gaf-mNDKBlG2WHs at public.gmane.org
Sat Jan 3 16:43:55 EST 2009


On 01/03/2009 01:24 PM, dan moylan wrote:
> running ubuntu 8.10.
> in my .profile file i had the following line:
>   hst=3D${HST:0:3}
> i was cited for a login error because of it, and couldn't
> log in until i changed the line to:
>   hst=3D`echo $HST | cut -c1-3`
> does anyone know why the first construction causes a
> problem?  once i'm logged in, both constructions work fine.
>  =20
As mentioned before, this could be a strict Bourne vs. BASH construct.=20
How do you log in. Do you get the error from the GUI when you do a GUI=20
login, or from logging in on a virtual terminal.

--=20
Jerry Feldman <gaf-mNDKBlG2WHs at public.gmane.org>
Boston Linux and Unix
PGP key id: 537C5846
PGP Key fingerprint: 3D1B 8377 A3C0 A5F2 ECBB  CA3B 4607 4319 537C 5846







More information about the Discuss mailing list