1837437 Members
3082 Online
110116 Solutions
New Discussion

Alias problems

 
Jeff Schroeder_2
New Member

Alias problems

I am a fairly new HP-UX admin coming from a very
strong linux background. In bash on Linux, ^L
is the same as the 'clear' command and .

I put alias ^L="clear" in my login profile, but
I still have to hit . Is there a way to
add a carriage return into the alias so that ^L
will run clear + ?
5 REPLIES 5
Stephen Keane
Honored Contributor

Re: Alias problems

It's not that "clear" command is missing an it's that the ^L isn't parsed by the shell until you enter, as the shell is buffering input and waits for an to indicate that the input has finished.
Jeff Schroeder_2
New Member

Re: Alias problems

I know it is possible to do something like this in linux, is it possible on HP-UX with the POSIX shell? I'm on 11.11 btw. Thanks!
TwoProc
Honored Contributor

Re: Alias problems

Well, you could just load bash on your HPUX box...
We are the people our parents warned us about --Jimmy Buffett
Jeff Schroeder_2
New Member

Re: Alias problems

Loading bash is not an option. Production servers for an airline go through the change control process.
TwoProc
Honored Contributor

Re: Alias problems

Boy, I've been looking at this, and I can't make it go. Even tried using an unused stty definition, and declaring ctrl-l as werase (which I never use), and making the alias. Didn't work - it just interpreted the worder erase and didn't bother with the alias. Like you said - works in bash (even on HPUX).
We are the people our parents warned us about --Jimmy Buffett