Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: _canonical_path not working on *BSD



Bart Schaefer wrote:
> On Mar 27,  6:06pm, Peter Stephenson wrote:
> }
> } Bart Schaefer wrote:
> } > Why do we even need the zstat if we're doing $(cd ...; pwd) ?
> } 
> } If the last segment is a directory we don't.
> 
> When is a mount point *not* a directory?

_canonical_paths isn't tied to mount points, although it's just used for
those at the moment.

I've committed the change and also an initial release note for 4.3.6:

Index: Etc/relnotes_4.3.6.txt
===================================================================
RCS file: Etc/relnotes_4.3.6.txt
diff -N Etc/relnotes_4.3.6.txt
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ Etc/relnotes_4.3.6.txt      28 Mar 2008 09:59:08 -0000      1.1
@@ -0,0 +1,19 @@
+Version 4.3.6 contains mostly bugfixes, but there are some small
+improvements.  No incompatibilities with previous versions are known.
+
+Visible changes in the shell and its modules since 4.3.5 include the
+following:
+
+The parameter subscripting flag "e", which existed but had limited
+usefulness, has been extended to allow reverse matching of strings instead
+of patterns.  For example, "${array[(ie)*]}" substitutes the index of the
+array element that contains the exact string "*".  In previous versions of
+the shell a fairly hairy process was necessary to ensure pattern characters
+were quoted.
+
+The cd, chdir, pushd and popd builtins now take the option -q (quiet) which
+avoids side effects when changing directories, suppressing the effect of
+the chpwd function, the chpwd_functions array and printing of the directory
+stack.  The last was already possible with the option PUSHD_SILENT, but in
+previous versions of the shell there was no easy way of suppressing the
+other side effects.

-- 
Peter Stephenson <pws@xxxxxxx>                  Software Engineer
CSR PLC, Churchill House, Cambridge Business Park, Cowley Road
Cambridge, CB4 0WZ, UK                          Tel: +44 (0)1223 692070



Messages sorted by: Reverse Date, Date, Thread, Author