Mintty fix your fucking cd..

113 views
Skip to first unread message

skybuck2000

unread,
Dec 29, 2021, 3:42:55 AM12/29/21
to git-for-windows
cd.. dont work
cd .. does work.

FUCK YOU this is fucking annoying !

Bye,
  Skybuck.

Reto

unread,
Dec 29, 2021, 5:17:45 AM12/29/21
to skybuck2000, git-for-windows
On Wed, Dec 29, 2021 at 12:42:55AM -0800, skybuck2000 wrote:
> cd.. dont work
> cd .. does work.

There is really no magic involved, "cd.." Literately tells bash to look
for an executable named "cd.." in your $PATH.
Such an executable doesn't exist, so that fails.

That's entirely on you.

*However* you can add a so called alias to bash which will translate cd..
to cd ..
Refer to the Bash manual or your favorite search engine as to see how.

> FUCK YOU this is fucking annoying !

This in inappropriate in many ways.
This list is not your dumping ground, please take such things elsewhere.

Konstantin Khomoutov

unread,
Dec 29, 2021, 10:53:06 AM12/29/21
to skybuck2000, git-for-windows
On Wed, Dec 29, 2021 at 11:17:39AM +0100, Reto wrote:

> > cd.. dont work
> > cd .. does work.
>
> There is really no magic involved, "cd.." Literately tells bash to look
> for an executable named "cd.." in your $PATH.
> Such an executable doesn't exist, so that fails.
>
> That's entirely on you.

That "cd.." thing is implemented in the stock Windows' cmd.exe shell, which
has it for compatibility with the command.com shell of MS-DOS. There it
indeed was a single command (for a reason which is unknown to me) while
filesystems on Unix (and Unix-compatible operating systems) have always had
two special entries in each directory - "." and ".." - which are no different
from any other named entry for the `cd` built-in command.

[...]
> This in inappropriate in many ways.
> This list is not your dumping ground, please take such things elsewhere.

So true. Thanks for pointing that out.

Paul Smith

unread,
Dec 29, 2021, 11:11:49 AM12/29/21
to Reto, git-for-windows
On Wed, 2021-12-29 at 11:17 +0100, Reto wrote:
> This list is not your dumping ground, please take such things
> elsewhere.

I recommend you do as many of the rest of us have done, and redirect
email from this person directly into the trash. They seem to consider
these mailing lists to be free personal therapy sessions, rather than
places to ask questions and learn new things.

If they actually wanted to learn something and solve an issue they find
annoying, they could have asked for help and we could recommend they
create a shell alias:

alias cd..='cd ..'

so that they could continue to use this ancient Windows "feature" in a
Git for Windows bash shell.

Or, of course, they could simply run Git commands from a Windows
cmd.exe shell and get all the shell behaviors they are used to: Git
does work from cmd.exe after all.

But, they don't want to solve a problem, they want to throw a public
temper tantrum. Best to look away and ignore it.

skybuck2000

unread,
Dec 30, 2021, 12:55:27 AM12/30/21
to git-for-windows
If they actually wanted to learn something and solve an issue they find
annoying, they could have asked for help and we could recommend they
create a shell alias:

alias cd..='cd ..'


There is only so much bugs I can take per day, some times a day is rough, that was yesterday LOL.

Font issues in windows edge... CL showing up as D in address bar.
Microsoft looking weird in address bar.
CD..
Newline problems in GIT.
Many many many bugs in Delphi.
Badly structured projects by others.
My own git fuckups cause still learning.
Frustration with not knowing exactly what certain git features might do or if it exist at all.
Music playing in the background...
Sometimes annoying neighbours...
General slowness of VM
General slowness of git-bash/mintty/git
Insert mode of mintty annoying
Copy Paste not working as expected
Clipboard copies being lost. (day before actually).
Not being able to copy&paste quickly between commits in git.

At some point I can't take it anymore and have to fix some of them and let off some steam ! =D

Anyway thanks a lot for this alias it works and will help a lot to get rid of some of that aggrevation.

Bye for now,
  Skybuck.
Message has been deleted

skybuck2000

unread,
Dec 30, 2021, 1:07:19 AM12/30/21
to git-for-windows
AT LEAST YOU CONTRIBUTED HALF THE SOLUTION, NOW I NEED TO GO GOOGLE HOW TO MAKE IT PERMANENT.

AND FORTUNATELY I KNOW HOW TO DELETE FIREFOX SPIEING FILES, COOKIES, CACHED, ENTRIES AND OTHER CRAP

OTHERWISE STARTING MY BROWSER ALONE TAKES LIKE 10 MINUTES :p*

BYE,
  SKYBUCK.

skybuck2000

unread,
Dec 30, 2021, 1:13:22 AM12/30/21
to git-for-windows
Add another one that was annoying me:

alias e:='cd e:'


How to add an alias permanently for the Git Bash
  1. To add an alias permanently, you'd need to edit the file
    /C/Program Files/Git/etc/profile.d/aliases.sh .

  2. Run your text editor as an administrator and open that file.

  3. Add your alias and save the file.

  4. Open the Git Bash. Execute 'alias', and you're done. Have fun.

Fortunately alias only needs to be run once, again not explained, but a small little test proves it works and it is saved.

I must hand it to the open source git people, so far everything I desired has been met with functionality and implementation.

This is what I like about git and muntty I have yet to find any real limitation, only checking out the linux kernel failed but that's a bit extreme perhaps.

Still need to debug that but don't have time for it for now... something to do maybe in the future when I have some time :P

Bye,
  Skybuck.
Reply all
Reply to author
Forward
0 new messages