/dports/shells/fish/fish-3.3.1/share/functions/ |
H A D | __fish_complete_cd.fish | 17 set -l cdpath (string match -v '.' -- $CDPATH) 21 set -l cdpath (string match -v -- $PWD $cdpath) 22 set -q cdpath[1] 25 # TODO: There's a subtlety regarding descriptions - if $cdpath[1]/foo and $cdpath[2]/foo 28 for cdpath in $cdpath 30 set -l desc (string replace -r -- "^$HOME" "~" "$cdpath") 32 for d in $cdpath/$token*/ 33 # Remove the cdpath component again. 35 and printf "%s\tCDPATH %s\n" (string replace -r "^$cdpath/" "" -- $d) $desc
|
/dports/shells/ksh93-devel/ast-cc1bca27/src/cmd/ksh93/bltins/ |
H A D | cd_pwd.c | 55 Pathcomp_t *cdpath = 0; in b_cd() local 101 if(!(cdpath = (Pathcomp_t*)shp->cdpathlist) && (dp=sh_scoped(shp,CDPNOD)->nvalue.cp)) in b_cd() 103 if(cdpath=path_addpath(shp,(Pathcomp_t*)0,dp,PATH_CDPATH)) in b_cd() 105 shp->cdpathlist = (void*)cdpath; in b_cd() 106 cdpath->shp = shp; in b_cd() 128 cdpath = 0; in b_cd() 145 dp = cdpath?cdpath->name:""; in b_cd() 146 cdpath = path_nextcomp(shp,cdpath,dir,0); in b_cd() 187 while(cdpath); in b_cd()
|
/dports/shells/ksh93/ast-93u/src/cmd/ksh93/bltins/ |
H A D | cd_pwd.c | 55 Pathcomp_t *cdpath = 0; in b_cd() local 101 if(!(cdpath = (Pathcomp_t*)shp->cdpathlist) && (dp=sh_scoped(shp,CDPNOD)->nvalue.cp)) in b_cd() 103 if(cdpath=path_addpath(shp,(Pathcomp_t*)0,dp,PATH_CDPATH)) in b_cd() 105 shp->cdpathlist = (void*)cdpath; in b_cd() 106 cdpath->shp = shp; in b_cd() 128 cdpath = 0; in b_cd() 145 dp = cdpath?cdpath->name:""; in b_cd() 146 cdpath = path_nextcomp(shp,cdpath,dir,0); in b_cd() 187 while(cdpath); in b_cd()
|
/dports/shells/ksh2020/ast-ksh2020/src/cmd/ksh93/bltins/ |
H A D | cd.c | 66 Pathcomp_t *cdpath = NULL; in b_cd() local 154 cdpath = shp->cdpathlist; in b_cd() 155 if (!cdpath) { in b_cd() 158 cdpath = path_addpath(shp, NULL, dp, PATH_CDPATH); in b_cd() 159 if (cdpath) { in b_cd() 160 shp->cdpathlist = cdpath; in b_cd() 161 cdpath->shp = shp; in b_cd() 183 dp = cdpath ? cdpath->name : ""; in b_cd() 184 cdpath = path_nextcomp(shp, cdpath, dir, 0); in b_cd() 231 } while (cdpath); in b_cd()
|
/dports/shells/yash/yash-2.51/share/completion/ |
H A D | cd | 111 typeset IFS=: cdpath candidates 112 for cdpath in ${CDPATH-}; do 113 if [ "$cdpath" = "" ]; then 114 cdpath=. 118 candidates=("${cdpath%/}/$word"*/) 120 # remove $cdpath and trailing slash 122 candidates=("${candidates##"${cdpath%/}/"}")
|
/dports/shells/ast-ksh/ast-ksh93v/src/cmd/ksh93/bltins/ |
H A D | cd_pwd.c | 74 Pathcomp_t *cdpath = 0; in b_cd() local 147 if(!(cdpath = (Pathcomp_t*)shp->cdpathlist) && (dp=sh_scoped(shp,CDPNOD)->nvalue.cp)) in b_cd() 149 if(cdpath=path_addpath(shp,(Pathcomp_t*)0,dp,PATH_CDPATH)) in b_cd() 151 shp->cdpathlist = (void*)cdpath; in b_cd() 152 cdpath->shp = shp; in b_cd() 179 dp = cdpath?cdpath->name:""; in b_cd() 180 cdpath = path_nextcomp(shp,cdpath,dir,0); in b_cd() 235 while(cdpath); in b_cd()
|
/dports/lang/execline/execline-2.8.0.1/src/posix/ |
H A D | posix-cd.c | 62 char const *cdpath = getenv("CDPATH") ; in main() local 63 if (cdpath) in main() 66 size_t len = strlen(cdpath) ; in main() 70 size_t m = byte_chr(cdpath + pos, len - pos, ':') ; in main() 74 if (!stralloc_catb(&sa, cdpath + pos, m)) dienomem() ; in main() 75 if (cdpath[pos + m - 1] != '/' && !stralloc_catb(&sa, "/", 1)) dienomem() ; in main()
|
/dports/shells/zsh/zsh-5.8.1/Functions/Compctl/ |
H A D | cdmatch | 6 # Completes directories for cd, pushd, ... anything which knows about cdpath. 7 # You do not have to include `.' in your cdpath. 11 # it still works if RC_EXPAND_PARAM is not set or when cdpath is empty. 19 cdp=(. $cdpath)
|
/dports/devel/9base/9base-6/rc/ |
H A D | simple.c | 158 word *cdpath; in execcd() local 161 cdpath = vlook("cdpath")->val; in execcd() 167 if(a->next->word[0]=='/' || cdpath==0) in execcd() 168 cdpath=&nullpath; in execcd() 169 for(;cdpath;cdpath = cdpath->next){ in execcd() 170 strcpy(dir, cdpath->word); in execcd() 175 if(strlen(cdpath->word) in execcd() 176 && strcmp(cdpath->word, ".")!=0) in execcd() 182 if(cdpath==0) in execcd()
|
/dports/devel/plan9port/plan9port-1f098efb7370a0b28306d10681e21883fb1c1507/src/cmd/rc/ |
H A D | simple.c | 158 word *cdpath; in execcd() local 161 cdpath = vlook("cdpath")->val; in execcd() 167 if(a->next->word[0]=='/' || cdpath==0) in execcd() 168 cdpath=&nullpath; in execcd() 169 for(;cdpath;cdpath = cdpath->next){ in execcd() 170 strcpy(dir, cdpath->word); in execcd() 175 if(strlen(cdpath->word) in execcd() 176 && strcmp(cdpath->word, ".")!=0) in execcd() 182 if(cdpath==0) in execcd()
|
/dports/games/openjk/OpenJK-07675e2/ |
H A D | Dockerfile | 45 RUN mkdir -p /opt/openjk/cdpath/base /opt/openjk/basepath /opt/openjk/homepath 47 COPY --from=builder /opt/JediAcademy/base/ /opt/openjk/cdpath/base/ 48 COPY --from=builder /opt/JediAcademy/OpenJK/ /opt/openjk/cdpath/OpenJK/ 50 COPY scripts/docker/server.cfg /opt/openjk/cdpath/base/ 51 COPY scripts/docker/server.cfg /opt/openjk/cdpath/OpenJK/
|
/dports/shells/zsh/zsh-5.8.1/Doc/help/ |
H A D | cd | 13 ries contained in the shell parameter cdpath. If it does not, 15 directory, and if that fails but cdpath is set and contains at 17 each component of cdpath in turn until successful. If `.' oc- 18 curs in cdpath, then cdpath is searched strictly in order so 21 The order of testing cdpath is modified if the option POSIX_CD
|
/dports/games/libretro-yabause/yabause-ea5b118/yabause/src/gtk/ |
H A D | main.c | 50 static char cdpath[256] = "\0"; variable 164 yinit.cdpath = cdpath; in yui_settings_init() 217 if((YUI_WINDOW(yui)->state & YUI_IS_INIT) && safe_strcmp(stmp, yinit.cdpath)) { in yui_settings_load() 220 if (stmp) g_strlcpy(cdpath, stmp, 256); in yui_settings_load() 225 Cs2ChangeCDCore(yinit.cdcoretype, yinit.cdpath); in yui_settings_load() 498 g_strlcpy(cdpath, argv[i + 1], 256); in main() 501 g_strlcpy(cdpath, argv[i] + strlen("--iso="), 256); in main() 506 g_strlcpy(cdpath, argv[i + 1], 256); in main() 509 g_strlcpy(cdpath, argv[i] + strlen("--cdrom="), 256); in main()
|
/dports/misc/mc/mc-4.8.27/src/filemanager/ |
H A D | cd.c | 177 char *cdpath, *p; in handle_cdpath() local 180 cdpath = g_strdup (getenv ("CDPATH")); in handle_cdpath() 181 p = cdpath; in handle_cdpath() 204 g_free (cdpath); in handle_cdpath()
|
/dports/misc/mc-nox11/mc-4.8.27/src/filemanager/ |
H A D | cd.c | 177 char *cdpath, *p; in handle_cdpath() local 180 cdpath = g_strdup (getenv ("CDPATH")); in handle_cdpath() 181 p = cdpath; in handle_cdpath() 204 g_free (cdpath); in handle_cdpath()
|
/dports/news/trn4/trn-4.0-test77/ |
H A D | url.c | 108 char* cdpath; local 125 cdpath = path; 127 cdpath = "/"; 130 filexp("%X"),host,username,userhost,cdpath,p+1,outname);
|
/dports/shells/heirloom-sh/heirloom-sh-050706/ |
H A D | bltin.c | 195 unsigned char *cdpath; in builtin() local 199 if ((cdpath = cdpnod.namval) == 0 || in builtin() 204 cdpath = (unsigned char *)nullstr; in builtin() 208 dir = cdpath; in builtin() 209 cdpath = catpath(cdpath,a1); in builtin() 212 cdpath); in builtin()
|
/dports/devel/sdl12/SDL-1.2.15/src/cdrom/beos/ |
H A D | SDL_syscdrom.cc | 169 char *cdpath, *delim; in SDL_SYS_CDInit() local 171 cdpath = SDL_stack_alloc(char, len); in SDL_SYS_CDInit() 172 if ( cdpath != NULL ) { in SDL_SYS_CDInit() 173 SDL_strlcpy(cdpath, SDLcdrom, len); in SDL_SYS_CDInit() 174 SDLcdrom = cdpath; in SDL_SYS_CDInit() 189 SDL_stack_free(cdpath); in SDL_SYS_CDInit()
|
/dports/devel/sdl12/SDL-1.2.15/src/cdrom/freebsd/ |
H A D | SDL_syscdrom.c | 156 char *cdpath, *delim; in SDL_SYS_CDInit() local 158 cdpath = SDL_stack_alloc(char, len); in SDL_SYS_CDInit() 159 if ( cdpath != NULL ) { in SDL_SYS_CDInit() 160 SDL_strlcpy(cdpath, SDLcdrom, len); in SDL_SYS_CDInit() 161 SDLcdrom = cdpath; in SDL_SYS_CDInit() 176 SDL_stack_free(cdpath); in SDL_SYS_CDInit()
|
/dports/devel/sdl12/SDL-1.2.15/src/cdrom/openbsd/ |
H A D | SDL_syscdrom.c | 165 char *cdpath, *delim; in SDL_SYS_CDInit() local 167 cdpath = SDL_stack_alloc(char, len); in SDL_SYS_CDInit() 168 if ( cdpath != NULL ) { in SDL_SYS_CDInit() 169 SDL_strlcpy(cdpath, SDLcdrom, len); in SDL_SYS_CDInit() 170 SDLcdrom = cdpath; in SDL_SYS_CDInit() 185 SDL_stack_free(cdpath); in SDL_SYS_CDInit()
|
/dports/sysutils/webmin/webmin-1.981/wuftpd/ |
H A D | edit_alias.cgi | 31 @cdpath = map { $_->[0] } &find_value('cdpath', $conf); 34 join("\n", @cdpath),"</textarea></td> </tr>\n";
|
H A D | save_alias.cgi | 25 push(@cdpath, { 'name' => 'cdpath', 28 &save_directive($conf, 'cdpath', \@cdpath);
|
/dports/devel/sdl12/SDL-1.2.15/src/cdrom/qnx/ |
H A D | SDL_syscdrom.c | 173 char *cdpath, *delim; in SDL_SYS_CDInit() local 175 cdpath = SDL_stack_alloc(char, len); in SDL_SYS_CDInit() 176 if (cdpath != NULL) in SDL_SYS_CDInit() 178 SDL_strlcpy(cdpath, SDLcdrom, len); in SDL_SYS_CDInit() 179 SDLcdrom = cdpath; in SDL_SYS_CDInit() 199 SDL_stack_free(cdpath); in SDL_SYS_CDInit()
|
/dports/shells/zsh/zsh-5.8.1/Completion/Zsh/Command/ |
H A D | _cd | 4 # - Normally just completes directories. Uses cdpath if that's set 71 tmpcdpath=(${${(@)cdpath:#.}:#$PWD}) 74 alt=( 'path-directories:directory in cdpath:_path_files -W tmpcdpath -/' ) 103 …alt=( "${cdpath+local-}directories:${cdpath+local }directory:_path_files ${(j: :)${(@q)tmpWpath}} …
|
/dports/devel/sdl12/SDL-1.2.15/src/cdrom/osf/ |
H A D | SDL_syscdrom.c | 176 char *cdpath, *delim; in SDL_SYS_CDInit() local 178 cdpath = SDL_stack_alloc(char, len); in SDL_SYS_CDInit() 179 if ( cdpath != NULL ) { in SDL_SYS_CDInit() 180 SDL_strlcpy(cdpath, SDLcdrom, len); in SDL_SYS_CDInit() 181 SDLcdrom = cdpath; in SDL_SYS_CDInit() 196 SDL_stack_free(cdpath); in SDL_SYS_CDInit()
|