Tom,

I think 'nd' is defined as function of cd, so maybe the recursion will not
work.

M Lu.



----- Original Message ----- 
From: "Tom Eastep" <[EMAIL PROTECTED]>
To: "M Lu" <[EMAIL PROTECTED]>
Cc: "Chris Lee" <[EMAIL PROTECTED]>;
<[EMAIL PROTECTED]>
Sent: Tuesday, July 06, 2004 5:11 PM
Subject: Re: [leaf-user] Re: Bering-uClibc 2.1.3 Question (2. PS1)


> M Lu wrote:
> > With bering shell, you can set PS1 but then you cannot use 'cd' and see
the
> > new directory. So the way I do is that I have to define a new command,
e.g.
> > 'nd' inside /etc/profile like that
> >
> > export PS1="`pwd`> "
> > nd()    { cd $* ; PS1="`pwd`> "; }
> >
> > now you can use 'nd' instead of 'cd' and it will show the current
directory.
> >
> > It is not very convenient but if you need to know where you are, you can
> > always type 'nd .'
>
> alias cd='nd'
>
> -Tom
> -- 
> Tom Eastep    \ Nothing is foolproof to a sufficiently talented fool
> Shoreline,     \ http://shorewall.net
> Washington USA  \ [EMAIL PROTECTED]
>
>
>
> -------------------------------------------------------
> This SF.Net email sponsored by Black Hat Briefings & Training.
> Attend Black Hat Briefings & Training, Las Vegas July 24-29 -
> digital self defense, top technical experts, no vendor pitches,
> unmatched networking opportunities. Visit www.blackhat.com
> ------------------------------------------------------------------------
> leaf-user mailing list: [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/leaf-user
> SR FAQ: http://leaf-project.org/pub/doc/docmanager/docid_1891.html
>


-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 - 
digital self defense, top technical experts, no vendor pitches, 
unmatched networking opportunities. Visit www.blackhat.com
------------------------------------------------------------------------
leaf-user mailing list: [EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/leaf-user
SR FAQ: http://leaf-project.org/pub/doc/docmanager/docid_1891.html

Reply via email to