Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #173529

Re: Jessie - Strange Alias Problem

From Greg Wooledge <wooledg@eeg.ccf.org>
Newsgroups linux.debian.user
Subject Re: Jessie - Strange Alias Problem
Date 2016-10-17 16:50 +0200
Message-ID <sthoJ-4JB-19@gated-at.bofh.it> (permalink)
References <sthf3-4Gc-1@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Mon, Oct 17, 2016 at 10:34:11AM -0400, S. P. Molnar wrote:
> I have the following line in my /home/comp/.bashrc;
> 
>  alias l='ls -l --color'
> 
> If I source the file in my /home/comp it works - once!, and only in my 
> home directory!!!  If I change to another directory - it doesn't work!

Use the command "type l" before and after changing directory, to be
sure your alias is still set the way you expect.  It's possible that
you've overridden the "cd" command in such a way that it removes or
changes your aliases (although that would be a pretty unusual thing
to do).

Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Jessie - Strange Alias Problem "S. P. Molnar" <s.molnar@sbcglobal.net> - 2016-10-17 16:40 +0200
  Re: Jessie - Strange Alias Problem Greg Wooledge <wooledg@eeg.ccf.org> - 2016-10-17 16:50 +0200
  Re: Jessie - Strange Alias Problem "Thomas Schmitt" <scdbackup@gmx.net> - 2016-10-17 18:30 +0200
    RE: Jessie - Strange Alias Problem "Stephen P. Molnar" <s.molnar@sbcglobal.net> - 2016-10-17 18:50 +0200
      Re: Jessie - Strange Alias Problem "Thomas Schmitt" <scdbackup@gmx.net> - 2016-10-17 19:00 +0200
        Re: Jessie - Strange Alias Problem "S. P. Molnar" <s.molnar@sbcglobal.net> - 2016-10-17 19:00 +0200
          Re: Jessie - Strange Alias Problem Greg Wooledge <wooledg@eeg.ccf.org> - 2016-10-17 19:10 +0200
            Re: Jessie - Strange Alias Problem "Thomas Schmitt" <scdbackup@gmx.net> - 2016-10-17 19:40 +0200
              Re: Jessie - Strange Alias Problem "S. P. Molnar" <s.molnar@sbcglobal.net> - 2016-10-17 19:50 +0200
                Re: Jessie - Strange Alias Problem "Thomas Schmitt" <scdbackup@gmx.net> - 2016-10-17 21:20 +0200
                RE: Jessie - Strange Alias Problem "Stephen P. Molnar" <s.molnar@sbcglobal.net> - 2016-10-17 21:40 +0200
                Re: Jessie - Strange Alias Problem "Thomas Schmitt" <scdbackup@gmx.net> - 2016-10-17 22:20 +0200

csiph-web