"Directory: <pwd>" output for every 'cd' in tcsh shell

"Directory: <pwd>" output for every 'cd' in tcsh shell

Post by Ted Weather » Wed, 02 Jul 2003 04:21:16



Every time I execute a 'cd' command in my tcsh shell, the directory
name is output:

# cd /tmp
Directory: /tmp
#

This is getting annoying.  Is there a way to get rid of this?  my cd
command isn't aliased to anything.

I don't have this problem with bash or sh.  Yes, I know they are
better shells (no holy wars please).

-Ted

 
 
 

"Directory: <pwd>" output for every 'cd' in tcsh shell

Post by Peter T. Breue » Wed, 02 Jul 2003 04:37:20



> Every time I execute a 'cd' command in my tcsh shell, the directory
> name is output:

That's what is supposed to happen!

Quote:> # cd /tmp
> Directory: /tmp

Change your prompt.

Quote:> #
> This is getting annoying.  Is there a way to get rid of this?  my cd

What do you mean? "A way"? Don't do it if you don't want to. Change your
prompt.

Quote:> command isn't aliased to anything.

Why should it be?

Quote:> I don't have this problem with bash or sh.  Yes, I know they are

Of course you do! The default prompt for bash and sh also shows the
current directory.

Quote:> better shells (no holy wars please).

No they aren't. I use tcsh. You apparently don't.

Peter

 
 
 

"Directory: <pwd>" output for every 'cd' in tcsh shell

Post by Ted Weather » Wed, 02 Jul 2003 09:54:22


Peter,

The "Directory: " output is not part of my prompt.  When I issue other
commands like 'ls' or 'mv' (etc), this "Directory: " text isn't shown:

  # ls -lF
  total 0
  drwx------    3 root     root           72 2003-01-31 05:36 a/
  drwx------    3 root     root           72 2003-03-18 06:54 b/
  drwx------    2 root     root           48 2003-03-10 08:02 c/
  # mv a b
  # mv c b
  # cd /tmp
  Directory: /tmp
  # ls
  drwx------    3 root     root           72 2003-01-31 05:36 e/
  drwx------    3 root     root           72 2003-03-18 06:54 f/
  drwx------    2 root     root           48 2003-03-10 08:02 g/
  #

Peter, are you sure you know what you're talking about?  Am I
mistaken?

Can anyone else help?

-Ted



> > Every time I execute a 'cd' command in my tcsh shell, the directory
> > name is output:

> That's what is supposed to happen!

> > # cd /tmp
> > Directory: /tmp

> Change your prompt.

> > #

> > This is getting annoying.  Is there a way to get rid of this?  my cd

> What do you mean? "A way"? Don't do it if you don't want to. Change your
> prompt.

> > command isn't aliased to anything.

> Why should it be?

> > I don't have this problem with bash or sh.  Yes, I know they are

> Of course you do! The default prompt for bash and sh also shows the
> current directory.

> > better shells (no holy wars please).

> No they aren't. I use tcsh. You apparently don't.

> Peter

 
 
 

"Directory: <pwd>" output for every 'cd' in tcsh shell

Post by Peter T. Breue » Wed, 02 Jul 2003 13:03:09



> The "Directory: " output is not part of my prompt.  When I issue other
> commands like 'ls' or 'mv' (etc), this "Directory: " text isn't shown:

Read your manual. If it happens when you change directory then it's
$cwdcmd.

   cwdcmd  Runs after every change of working directory.

Quote:>   # ls -lF

You are root! Don't be! Never run as root.

Quote:> Peter, are you sure you know what you're talking about?  Am I
> mistaken?

What do you think you are mistaken about?

Quote:> Can anyone else help?

Only you.

Quote:>> > better shells (no holy wars please).

>> No they aren't. I use tcsh. You apparently don't.

Peter
 
 
 

"Directory: <pwd>" output for every 'cd' in tcsh shell

Post by Ted Weather » Thu, 03 Jul 2003 01:52:49


I did an "alias cwdcmd ''" and the directory output vanishes.

I'm not sure why this junk is output by default on my system.

Thanks Peter!



> > The "Directory: " output is not part of my prompt.  When I issue other
> > commands like 'ls' or 'mv' (etc), this "Directory: " text isn't shown:

> Read your manual. If it happens when you change directory then it's
> $cwdcmd.

>    cwdcmd  Runs after every change of working directory.

> >   # ls -lF

> You are root! Don't be! Never run as root.

> > Peter, are you sure you know what you're talking about?  Am I
> > mistaken?

> What do you think you are mistaken about?

> > Can anyone else help?

> Only you.

> >> > better shells (no holy wars please).

> >> No they aren't. I use tcsh. You apparently don't.

> Peter

 
 
 

"Directory: <pwd>" output for every 'cd' in tcsh shell

Post by Peter T. Breue » Thu, 03 Jul 2003 05:41:55


Please DO NOT TOP POST! Fixed.



>> > The "Directory: " output is not part of my prompt.  When I issue other
>> > commands like 'ls' or 'mv' (etc), this "Directory: " text isn't shown:

>> Read your manual. If it happens when you change directory then it's
>> $cwdcmd.

>>    cwdcmd  Runs after every change of working directory.
> I did an "alias cwdcmd ''" and the directory output vanishes.

To get rid of an alias you unalias it!

Quote:> I'm not sure why this junk is output by default on my system.

Because that's what you opted for by not editing your .login.

Peter

 
 
 

1. httpd - Error: "Expected </Directory> but saw </Directory>"

system:
IBM RS/6000 H70, 2gig Ram with SSA drives
AIX ver 4.3.2

Apache ver 1.3.14

I compiled the source and edited the httpd.conf but now this error
when starting ./httpd:
****
/usr/local/apache/bin :<H70> #./httpd                          
Syntax error on line 294 of /usr/local/apache/conf/httpd.conf:
Expected </Directory> but saw </Directory>                    
/usr/local/apache/bin :<H70> #          
****
This is the line that is causing the error:
****
# First, we configure the "default" to be a very restrictive set of

# permissions.

#

<Directory />

    Options FollowSymLinks

    AllowOverride None

</Directory>

****
I do not understand why this is causing the error.
TIA
Bryan                      

2. unknown terminal "vt100"

3. How to get "cd dir" working as "cd dir ; pwd"?

4. Network Installation

5. <font color="blue"><B>kmail</B></font> question

6. FS: Sun 3/160 ; $50

7. >>>Compiling 2.0 problem: "asm86: Command not found" <<<

8. Linux does not work with USB devices

9. <font color="blue"><B>modemblaster</B></font>

10. mod_perl upgrade says "Invalid command '<Perl>'..."

11. SAMBA: Can't "pwd" smbmount-ed services below top directory?

12. """"""""My SoundBlast 16 pnp isn't up yet""""""""""""

13. Why doesn't echo "text" 'command' "more text" work?