[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: mkdir new parameter
From: |
Willian Paixão |
Subject: |
Re: mkdir new parameter |
Date: |
Fri, 29 Jul 2011 12:19:52 -0300 |
Thanks, I already have this function in /etc/profile.d/.
But my wish is to implement such feature in mkdir.
About the trouble with current directory variable,
I was thinking on how do it. But, isn't impossible, I guess.
--
Willian Paixão
Computer Engineer
http://www.laps.ufpa.br/willian
On Fri, Jul 29, 2011 at 8:29 AM, Davide Brini <address@hidden> wrote:
> On Thu, 28 Jul 2011 21:52:47 -0300 (BRT), Willian Sodré da Paixão
> <address@hidden> wrote:
>
>> Almost every time I make a directory, I get into it.
>> So, I thought: would be nice if a parameter -something create and enter
>> the new directory.
>>
>> I can do it, but you will apply the patch? This idea is realy good for
>> you?
>
> I don't think that's possible. The concept of "current directory" is
> per-process, so even if mkdir "entered" the newly-created directory, when
> it terminates you would still be where you were in the parent process (eg,
> the shell).
>
> On the other hand, what you need is trivially done with a shell function or
> alias.
>
> --
> D.
>
>
--
Willian Paixão
Computer Engineer
http://www.laps.ufpa.br/willian