I think my main complaint about the uses of it is that the "make a list,
and consume from a list" idea is pretty basic to programming in general and
I prefer to use a common approach instead of having a specific one for
directories.
On Fri, Oct 10, 2014 at 1:35 PM, Michael Havens <
bmike1@gmail.com> wrote:
> I see. So it is a way to stack directories in your order so you can go in
> reverse a certain order and save yourself some typing. pushd is strange. if
> you execute it alone it reverses the last two directories on your stack. I
> didn't know about 'cd -'; thanks for sharing that with me.
>
> :-)~MIKE~(-:
>
> On Fri, Oct 10, 2014 at 1:10 PM, James Mcphee <jmcphe@gmail.com> wrote:
>
>> pushd and popd are stack-oriented. You may notice with cd that you can
>> do "cd -" to go to your previous directory. Think of pushd and popd as a
>> way to store those up. You pushd into various directories, which loads
>> them up on the stack, then popd and you get cd'd back into those
>> directories (in reverse order).
>>
>> Now, you may be asking yourself "why?". It's just an old way of doing
>> things back when the speed of stack memory meant something. I'm sure
>> someone could figure out an actual use for it, but every time I see it
>> implemented, it's done to be obscure, not because it couldn't be more
>> simply implemented with an array.
>>
>> On Fri, Oct 10, 2014 at 1:06 PM, Michael Havens <bmike1@gmail.com> wrote:
>>
>>> what is the difference between pushd and pod and the command cd
>>> :-)~MIKE~(-:
>>>
>>> ---------------------------------------------------
>>> PLUG-discuss mailing list - PLUG-discuss@lists.phxlinux.org
>>> To subscribe, unsubscribe, or to change your mail settings:
>>> http://lists.phxlinux.org/mailman/listinfo/plug-discuss
>>>
>>
>>
>>
>> --
>> James McPhee
>> jmcphe@gmail.com
>>
>> ---------------------------------------------------
>> PLUG-discuss mailing list - PLUG-discuss@lists.phxlinux.org
>> To subscribe, unsubscribe, or to change your mail settings:
>> http://lists.phxlinux.org/mailman/listinfo/plug-discuss
>>
>
>
> ---------------------------------------------------
> PLUG-discuss mailing list - PLUG-discuss@lists.phxlinux.org
> To subscribe, unsubscribe, or to change your mail settings:
> http://lists.phxlinux.org/mailman/listinfo/plug-discuss
>
--
James McPhee
jmcphe@gmail.com
---------------------------------------------------
PLUG-discuss mailing list -
PLUG-discuss@lists.phxlinux.org
To subscribe, unsubscribe, or to change your mail settings:
http://lists.phxlinux.org/mailman/listinfo/plug-discuss