* bug#73656: 30.0.91; icomplete-vertical has no matches for M-x man RET chdir
2024-10-06 13:35 ` Eli Zaretskii
@ 2024-10-06 14:54 ` Van Ly via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-10-06 16:10 ` Eli Zaretskii
0 siblings, 1 reply; 10+ messages in thread
From: Van Ly via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2024-10-06 14:54 UTC (permalink / raw)
To: Eli Zaretskii; +Cc: 73656
[-- Attachment #1: Type: text/plain, Size: 214 bytes --]
Eli Zaretskii <eliz@gnu.org> writes:
>
> What does "man -k chdir" say?
>
See attached output.
man -k chdir
generates multiline context output
apropos -M chdir
generates single line output for each manpage
[-- Attachment #2: man -k chdir output; apropos -M chdir --]
[-- Type: application/octet-stream, Size: 24373 bytes --]
1 $ man -k chdir
2 man -k chdir
3 chdir (2) change current working directory
4 chdir
5
6 posix_spawn_file_actions_addchdir (3) add chdir or fchdir action to spawn file actions object
7 The posix_spawn_file_actions_addchdir function adds a chdir action to the object referenced by file_actions that causes the working directory to be set to path (as if chdir(path) had been called) for a new process spawned...
8
9 rexecd (8) remote execution server
10 ...No password file entry for the user name existed. Password incorrect. The wrong password was supplied. No remote directory. The chdir(2) to the home directory failed. Try again. A fork(2) by the server failed. <shellname>: ... The user's...
11
12 rshd (8) remote shell server
13 ...list (as configured into the system). Login incorrect. No password file entry for the user name existed. Remote directory. The chdir(2) to the home directory failed. Permission denied. The authentication procedure described above failed. Can't make pipe. The...
14
15 ftw (3) traverse (walk) a file tree
16 ...tree in pre-order. FTW_CHDIR Change to a directory before reading it. By default, nftw will change its starting directory. The current working directory will be restored to its original value before nftw returns. chdir(2) , close(2) , open...
17
18 fts (3) traverse a file hierarchy
19 ...errors specified for the library functions chdir(2) and close(2) . The functions fts_read and fts_children may fail and set errno for any of the errors specified for the library functions chdir(2) , malloc(3) , opendir(3) , readdir...
20
21 cd (1) change working directory
22 ...directory operand is an absolute or relative pathname which becomes the new working directory. The interpretation of a relative pathname by cd depends on the CDPATH environment variable (see below). csh(1) , ksh(1) , pwd(1) , sh(1) , chdir(2)
23
24 chroot (8) change root directory
25 ...2) , getgrnam(3) , and getpwnam(3) . Note: command or the shell are run as your real-user-id. ldd(1) , chdir(2) , chroot(2) , environ(7) chroot should never be installed setuid root, as it would then be possible to...
26
27 chroot (2) change root directory
28 ...other systems, chroot has no effect on the process's current directory. This call is restricted to the super-user. The fchroot function performs the same operation on an open directory file known by the file descriptor fd . chdir(2)
29
30 bootpef (8) BOOTP Extension File compiler
31 ...tag 18). If any client-name arguments are specified, then bootpef compiles the extension files for only those clients. -c chdir-path Sets the current directory used by bootpef while creating extension files. This is useful when the extension file...
32
33 pam_chroot (8) Chroot PAM module
34 ...derived from the user's home directory, and the dir option was not specified. cwd = directory Specify the directory to chdir(2) into after a successful chroot(2) call. dir = directory Specify the chroot directory to use if one could...
35
36 bindtextdomain (3) set directory containing message catalogs
37 ...set to dirname. The function makes copies of the argument strings as needed. If the program wishes to call the chdir function, it is important that dirname be an absolute pathname; otherwise it cannot be guaranteed that the message catalogs...
38
39 Tcl_GetCwd (3) manipulate the current working directory
40 ...must call Tcl_DStringFree() when the result is no longer needed. The format of the path is UTF-8. Tcl_Chdir changes the applications current working directory to the value specified in dirName. The format of the passed in string...
41
42 getcwd (3) get working directory pathname
43 ...error-prone method of accomplishing this is to open the current directory . and use the fchdir(2) function to return. chdir(2) , fchdir(2) , malloc(3) , strerror(3) As getwd does not know the length of the supplied buffer, it...
44
45 ukfs (3) user kernel file system library interface
46 ...unmount the file system. This means that any busy nodes (due to e.g. ukfs_chdir ) will be ignored. Release always succeeds. int ukfs_chdir struct ukfs *ukfs const char *path int ukfs_getdents struct ukfs *ukfs const char *dirname...
47
48 clone (2) spawn new process with options
49 ...used for new native NetBSD applications. It is provided as a means to port software originally written for the Linux operating system to NetBSD . chdir(2) , chroot(2) , fork(2) , sigaction(2) , sigprocmask(2) , umask(2) , vfork(2) , wait(2)
50
51 git-sh-setup (1) Common Git shell script setup code
52 ...indicate if the repository is a bare repository (i.e. without an associated working tree). cd_to_toplevel 4 runs chdir to the toplevel of the working tree. require_work_tree 4 checks if the current directory is within the...
53
54 perlstyle (1) Perl style guide
55 ...if $opt_c; $IDX = $ST_SIZE if $opt_s; mkdir $tmpdir, 0700 or die "cant mkdir $tmpdir: $!"; chdir($tmpdir) or die "cant chdir $tmpdir: $!"; mkdir tmp, 0777 or die "cant mkdir $tmpdir/tmp: $!"; R 4 Always check the return codes...
56
57 setuid (7) checklist for security of setuid programs
58 ...induced to carelessly give away its special privileges. The directory the program is started in, or directories it may plausibly chdir(2) to, may contain programs with the same names as system programs, placed there in hopes that the program...
59
60 perlfork (1) Perl's fork() emulation
61 ...or pseudo-processes) launched from it. chdir() and all other builtins that accept filenames 8 Each pseudo-process maintains its own virtual idea of the current directory. Modifications to the current directory using chdir() are only visible within that pseudo...
62
63 execve (2) execute a file
64 ...parent process ID see getppid(2) process group ID see getpgrp(2) access groups see getgroups(2) working directory see chdir(2) root directory see chroot(2) control terminal see termios(4) resource usages see getrusage(2) interval timers see...
65
66 vnsubr (9) high-level convenience functions for vnode operations
67 ...the vnode dvp . The argument l is the calling process. vn_isunder is intended to be used in chroot(2) , chdir(2) , fchdir(2) , etc., to ensure that chroot(2) actually means something. If the operation is successful zero is...
68
69 bootpd (8) Internet Boot Protocol server/gateway
70 ...versions of bootpd , omitting the numeric parameter (i.e. just -d) will simply increment the debug level by one. -c chdir-path Sets the current directory used by bootpd while checking the existence and size of client boot files. This...
71
72 named-checkzone (1) zone file validity checking or converting tool
73 ...also present. Possible modes are warn (the default) and ignore. 168u 0.0 -w directory This option instructs named to chdir to directory, so that relative filenames in master file $INCLUDE directives work. This is similar to the directory clause...
74
75 perlop (1) Perl operators and precedence
76 ...CW chdir $foo || die; # (chdir $foo) || die chdir($foo) || die; # (chdir $foo) || die chdir ($foo) || die; # (chdir $foo) || die chdir +($foo) || die; # (chdir $foo) || die R but, because "*" is higher precedence than named operators: CW chdir $foo * 20; # chdir ($foo...
77
78 perl58delta (1) what is new for perl v5.8.0
79 ...allowed to escape the laboratory has been decommissioned. 4 Using chdir("") or chdir(undef) instead of explicit chdir() is doubtful. A failure (think chdir(some_function()) can lead into unintended chdir() to the home directory, therefore this behaviour is deprecated...
80
81 sigaction (2) software signal facilities
82 ...exit(2) , abort(3) , accept(2) , access(2) , alarm(3) , bind(2) , cfgetispeed(3) , cfgetospeed(3) , cfsetispeed(3) , cfsetospeed(3) , chdir(2) , chmod(2) , chown(2) , clock_gettime(2) , close(2) , connect(2) , creat(3) , dup(2) , dup2(2) , execle...
83
84 Tcl_FSRegister (3) procedures to interact with any filesystem
85 ...to access this and related functions, while ensuring the results are always valid. Tcl_FSChdir replaces the library version of chdir. The path is normalized and then passed to the filesystem which claims it. If that filesystem does not implement...
86
87 perltrap (1) Perl traps for the unwary
88 ...t ever get them confused. 4 You cannot discern from mere inspection which builtins are unary operators (like chop() and chdir()) and which are list operators (like print() and unlink()). (Unless prototyped, user-defined subroutines can only be list operators...
89
90 perl5240delta (1) what is new for perl v5.24.0
91 ...on the string (or a copy) first. chdir() no longer chdirs home Using chdir() or chdir(undef) to chdir home has been deprecated since perl v5.8, and will now fail. Use chdir() instead. ASCII characters in variable names must...
92
93 bootptab (5) Internet Bootstrap Protocol server database
94 ...be used to inform bootpd of this special root directory used by tftpd . (One may alternatively use the bootpd "-c chdir" option.) The hd tag is actually relative to the root directory specified by the td tag. For example, if...
95
96 Git (3) Perl interface to the Git version control system
97 ...copy (unless you work with a bare repository). You can also navigate inside of the working copy using the wc_chdir() method. (Note that the repository object is self-contained and will not change working directory of your process.) TODO...
98
99 sftp (1) OpenSSH secure file transfer
100 ...standard input. sftp will abort if any of the following commands fail: get , put , reget , reput , rename , ln , rm , mkdir , chdir , ls , lchdir , copy , cp , chmod , chown , chgrp , lpwd , df , symlink , and lmkdir . Termination on error can be suppressed on...
101
102 perl5100delta (1) what is new for perl 5.10.0
103 ...number to specify that you want to use a version of perl older than the specified one. "chdir", "chmod" and "chown" on filehandles "chdir", "chmod" and "chown" can now work on filehandles as well as filenames, if the system supports...
104
105 emacs (1) GNU project Emacs editor
106 ...and the number). This applies only to the next file specified. + line:column Go to the specified line and column . --chdir= directory Change to directory . -q , --no-init-file Do not load an init file. -nl , --no-shared-memory Do...
107
108 perlunifaq (1) Perl Unicode FAQ
109 ...that should not happen, Perl also throws a "wide character" warning in this case. Other output mechanisms (e.g., "exec", "chdir", ..) Your text string will be sent using the bytes in Perl's internal format. Because the internal format is...
110
111 rc.subr (8) functions used by system shell scripts
112 ...default start method. required_vars Perform checkyesno on each of the list variables before running the default start method. ${name}_chdir Directory to cd to before running command , if ${name}_chroot is not provided. ${name}_chroot Directory to chroot(8...
113
114 perlthrtut (1) Tutorial on threads in Perl
115 ...state, affecting all the threads. The most common example of this is changing the current working directory using chdir(). One thread calls chdir(), and the working directory of all the threads changes. Even more drastic example of a process-scope...
116
117 csh (1) a shell (command interpreter) with C-like syntax
118 ...switch , resuming after the endsw . case label : A label in a switch statement as discussed below. cd cd name chdir chdir name Change the shell's working directory to directory name . If no argument is given then change to the...
119
120 ftpd (8) Internet File Transfer Protocol server
121 ...the a anondir directory (if set), or to the home directory of the ftp user. The server then performs a chdir(2) to the directory specified in the ftpd.conf(5) homedir directive (if set), otherwise to / . If other restrictions...
122
123 perlipc (1) Perl interprocess communication (signals, fifos, pipes, safe subprocesses, sockets, and semaphores)
124 ...that random output doesn't wind up on the user's terminal. CW use POSIX "setsid"; sub daemonize { chdir("/") || die "cant chdir to /: $!"; open(STDIN, "<", "/dev/null") || die "cant read /dev/null: $!"; open(STDOUT, ">", "/dev/null") || die "cant write /dev...
125
126 perlsub (1) Perl subroutines
127 ...via the import syntax, and these names may then override built-in ones: CW use subs chdir, chroot, chmod, chown; chdir $somewhere; sub chdir { ... } R To unambiguously refer to the built-in form, precede the built-in name with the...
128
129 perlrun (1) how to execute the Perl interpreter
130 ...if specified, must appear immediately following the -x with no intervening whitespace. HOME 12 Used if "chdir" has no argument. LOGDIR 12 Used if "chdir" has no argument and "HOME" is not set. PATH 12 Used in executing subprocesses, and...
131
132 make (1) maintain program dependencies
133 ...so that the mode of make operation does not change their behavior. For example, any command which uses cd or chdir without the intention of changing the directory for subsequent commands should be put in parentheses so it executes in...
134
135 perl588delta (1) what is new for perl v5.8.8
136 ...are no changes intentionally incompatible with 5.8.7. If any exist, they are bugs and reports are welcome. 4 "chdir", "chmod" and "chown" can now work on filehandles as well as filenames, if the system supports respectively "fchdir", "fchmod...
137
138 amd.conf (5) Amd configuration file
139 ...mounts. This has the advantage of mounting in place, and users get to the see the same pathname that they chdir'ed into. If this option is set to "no," then Amd will use symlinks instead: that code is more...
140
141 perlport (1) Writing portable Perl
142 ...be affected after the call, and the filehandle may be flushed. chdir 8 (Win32) The current directory reported by the system may include any symbolic links specified to chdir(). chmod 8 (Win32) Only good for changing "owner" read-write access...
143
144 perl5260delta (1) what is new for perl v5.26.0
145 ...and modules), then add "." back into the path; e.g.: CW BEGIN { my $dir = "/some/trusted/directory"; chdir $dir or die "Cant chdir to $dir: $!n"; # safe now push @INC, .; } use "Foo::Bar"; # may load /some/trusted/directory/Foo/Bar...
146
147 perlfunc (1) Perl builtin functions
148 ...args is actually a hybrid of the current state and initial state of @_. Buyer beware. chdir EXPR 4 0 chdir FILEHANDLE 4 chdir DIRHANDLE 4 chdir 4 Changes the working directory to EXPR, if possible. If EXPR is omitted, changes...
149
150 perltoc (1) perl documentation table of contents
151 ...package "main":, Bless the referred-to item into the current package (not inheritable):, break, caller EXPR , caller, chdir EXPR , chdir FILEHANDLE, chdir DIRHANDLE, chdir, chmod LIST , chomp VARIABLE , chomp( LIST ), chomp, chop VARIABLE , chop( LIST ), chop, chown LIST , chr NUMBER...
152
153 perltie (1) how to hide an object class in a simple variable
154 ...the return values out of a readdir, you'd better prepend the directory in question. Otherwise, because we didn't chdir() there, it would have been testing the wrong file. FETCH this, key 4 This method will be triggered every...
155
156 perl561delta (1) what's new for perl v5.6.1
157 ...name was not known. It now correctly uses the supplied port number as is. File::Find 4 File::Find now chdir()s correctly when chasing symbolic links. xsubpp 4 xsubpp now tolerates embedded POD sections. "no Module;" 4 "no Module...
158
159 perlfaq8 (1) System Interaction
160 ...R The trick in this task is to find the directory. Before your script does anything else (such as a "chdir"), you can get the current working directory with the "Cwd" module, which comes with Perl: CW BEGIN { use Cwd...
161
162 perl589delta (1) what is new for perl v5.8.9
163 ...on VMS. Windows 4 "File::Find" used to fail when the target directory is a bare drive letter and "no_chdir" is 1 (the default is 0). [RT #41555] 4 A build problem with specifying "USE_MULTI" and "USE_ITHREADS...
164
165 mail (1) send and receive mail
166 ...the old To field minus the user's local address and any on the alternates list. (See the alternates command.) chdir c Changes the user's working directory to that specified, if given. If no directory is given, then changes...
167
168 perlvms (1) VMS-specific documentation for Perl
169 ...Perl (functions marked with * are discussed in more detail below): CW file tests*, abs, alarm, atan, backticks*, binmode*, bless, caller, chdir, chmod, chown, chomp, chop, chr, close, closedir, cos, crypt*, defined, delete, die, do, dump*, each, endgrent, endpwent, eof, eval...
170
171 git (1) the stupid content tracker
172 ...be a colon-separated list of absolute paths. If set, it is a list of directories that Git should not chdir up into while looking for a repository directory (useful for excluding slow-loading network directories). It will not exclude...
173
174 perlmodlib (1) constructing new Perl modules and finding existing ones
175 ...of single quotes). CW % perl -MFile::Find=find -MFile::Spec::Functions -Tlwe find { wanted => sub { print canonpath $_ if /.pmz/ }, no_chdir => 1 }, @INC R (The -T is here to prevent @INC from being populated by "PERL5LIB", "PERLLIB", and "PERL_USE...
176
177 perlglossary (1) Perl Glossary
178 ...youll ordinarily deny access to. See the "umask" function. unary operator 4 An operator with only one operand, like "!" or "chdir". Unary operators are usually prefix operators; that is, they precede their operand. The "++" and "" operators can be either prefix...
179
180 rsyncd.conf (5) configuration file for rsync in daemon mode
181 ...It is also possible to specify a dot-dir in the module's "path" to indicate that you want to chdir to the earlier part of the path and then serve files from inside the latter part of the path...
182
183 perl5220delta (1) what is new for perl v5.22.0
184 ...In deparsing feature bundles, "B::Deparse" was emitting "no feature;" first instead of "no feature :all;". This has been fixed. "chdir FH" is now deparsed without quotation marks. "my @a" is now deparsed without parentheses. (Parenthese would flatten the array...
185
186 find (1) search for files in a directory hierarchy
187 ...hard links, the leaf optimisation will often mean that find knows that it doesn't need to call stat() or chdir() on the symbolic link, so this diagnostic is frequently not necessary. The -d option is supported for compatibility with...
188
189 perldiag (1) various Perl diagnostics
190 ...was not attached to the symbol table. Can't chdir to %s 4 (F) You called "perl -x/foo/bar", but /foo/bar is not a directory that you can chdir to, possibly because it doesn't exist. Can't...
191
192 perlunicode (1) Unicode support in Perl
193 ...concept. Similarly for "qx" and "system": how well will the "command-line interface" (and which of them?) handle Unicode? 4 "chdir", "chmod", "chown", "chroot", "exec", "link", "lstat", "mkdir", "rename", "rmdir", "stat", "symlink", "truncate", "unlink", "utime", "-X" 4 %ENV 4 "glob...
194
195 perlos2 (1) Perl under OS/2, DOS, Win0.3*, Win0.95 and WinNT.
196 ...File::Copy. "DynaLoader::mod2fname" 4 used by "DynaLoader" for DLL name mangling. Cwd::current_drive() 4 Self explanatory. Cwd::sys_chdir(name) 4 leaves drive as it is. Cwd::change_drive(name) 4 changes the "current" drive. Cwd::sys_is...
197
198 perl56delta (1) what's new for perl v5.6.0
199 ...other options to control its behavior. It can follow symbolic links if the "follow" option is specified. Enabling the "no_chdir" option will make File::Find skip changing the current directory when walking directories. The "untaint" flag can be useful...
200
201 sh (1) command interpreter (shell)
202 ...print out the name of the directory that it actually switched to; that is, the pathname passed to the successful chdir(2) system call if this is different from the name that the user gave, or if the cdprint option...
203
204 perl5160delta (1) what is new for perl v5.16.0
205 ...resulting in a failure to call the method, due to memory corruption 4 Assignments like "*$tied = &{"..."}" and "*glob = $tied" 4 "chdir", "chmod", "chown", "utime", "truncate", "stat", "lstat" and the filetest ops ("-r", "-x", etc.) 4 4 "caller" sets @DB::args...
206
207 rsync (1) a fast, versatile, remote (and local) file-copying tool
208 ...followed by a slash, so "/foo/." would not be abbreviated.) For older rsync versions, you would need to use a chdir to limit the source path. For example, when pushing files: 4 (cd /foo; rsync -avR bar/baz.c remote...
1 $ apropos -M chdir
2 apropos -M chdir
3 chdir (2) change current working directory
4 posix_spawn_file_actions_addchdir (3) add chdir or fchdir action to spawn file actions object
5 rexecd (8) remote execution server
6 rshd (8) remote shell server
7 ftw (3) traverse (walk) a file tree
8 fts (3) traverse a file hierarchy
9 cd (1) change working directory
10 chroot (8) change root directory
11 chroot (2) change root directory
12 bootpef (8) BOOTP Extension File compiler
13 pam_chroot (8) Chroot PAM module
14 bindtextdomain (3) set directory containing message catalogs
15 Tcl_GetCwd (3) manipulate the current working directory
16 getcwd (3) get working directory pathname
17 ukfs (3) user kernel file system library interface
18 clone (2) spawn new process with options
19 git-sh-setup (1) Common Git shell script setup code
20 perlstyle (1) Perl style guide
21 setuid (7) checklist for security of setuid programs
22 perlfork (1) Perl's fork() emulation
23 execve (2) execute a file
24 vnsubr (9) high-level convenience functions for vnode operations
25 bootpd (8) Internet Boot Protocol server/gateway
26 named-checkzone (1) zone file validity checking or converting tool
27 perlop (1) Perl operators and precedence
28 perl58delta (1) what is new for perl v5.8.0
29 sigaction (2) software signal facilities
30 Tcl_FSRegister (3) procedures to interact with any filesystem
31 perltrap (1) Perl traps for the unwary
32 perl5240delta (1) what is new for perl v5.24.0
33 bootptab (5) Internet Bootstrap Protocol server database
34 Git (3) Perl interface to the Git version control system
35 sftp (1) OpenSSH secure file transfer
36 perl5100delta (1) what is new for perl 5.10.0
37 emacs (1) GNU project Emacs editor
38 perlunifaq (1) Perl Unicode FAQ
39 rc.subr (8) functions used by system shell scripts
40 perlthrtut (1) Tutorial on threads in Perl
41 csh (1) a shell (command interpreter) with C-like syntax
42 ftpd (8) Internet File Transfer Protocol server
43 perlipc (1) Perl interprocess communication (signals, fifos, pipes, safe subprocesses, sockets, and semaphores)
44 perlsub (1) Perl subroutines
45 perlrun (1) how to execute the Perl interpreter
46 make (1) maintain program dependencies
47 perl588delta (1) what is new for perl v5.8.8
48 amd.conf (5) Amd configuration file
49 perlport (1) Writing portable Perl
50 perl5260delta (1) what is new for perl v5.26.0
51 perlfunc (1) Perl builtin functions
52 perltoc (1) perl documentation table of contents
53 perltie (1) how to hide an object class in a simple variable
54 perl561delta (1) what's new for perl v5.6.1
55 perlfaq8 (1) System Interaction
56 perl589delta (1) what is new for perl v5.8.9
57 mail (1) send and receive mail
58 perlvms (1) VMS-specific documentation for Perl
59 git (1) the stupid content tracker
60 perlmodlib (1) constructing new Perl modules and finding existing ones
61 perlglossary (1) Perl Glossary
62 rsyncd.conf (5) configuration file for rsync in daemon mode
63 perl5220delta (1) what is new for perl v5.22.0
64 find (1) search for files in a directory hierarchy
65 perldiag (1) various Perl diagnostics
66 perlunicode (1) Unicode support in Perl
67 perlos2 (1) Perl under OS/2, DOS, Win0.3*, Win0.95 and WinNT.
68 perl56delta (1) what's new for perl v5.6.0
69 sh (1) command interpreter (shell)
70 perl5160delta (1) what is new for perl v5.16.0
71 rsync (1) a fast, versatile, remote (and local) file-copying tool
[-- Attachment #3: Type: text/plain, Size: 9 bytes --]
--
vl
^ permalink raw reply [flat|nested] 10+ messages in thread