Created
May 17, 2023 06:36
-
-
Save s0ubhik/6685effe6e46f6a840bb480c5d657933 to your computer and use it in GitHub Desktop.
Patch for cd ... support in bash
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
+++ builtins/cd.def 2023-05-17 11:57:46.148180535 +0530 | |
@@ -328,6 +328,8 @@ | |
return (EXECUTION_FAILURE); | |
} | |
lflag = 0; | |
+ } else if (strcmp(list->word->word, "...") == 0){ | |
+ dirname = "../../"; | |
} | |
#if defined (CD_COMPLAINS) | |
else if (list->next) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment