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

Bug involving named pipes and globbing...



zsh seems to try to read named pipes as directories when globbing into
directories.  Here's an example:

% echo $ZSH_VERSION                                          ~/test 2:03pm envy
2.6-beta8
% uname -a                                                   ~/test 2:04pm envy
HP-UX envy A.09.01 A 9000/735 2010594854 two-user license
% mkdir test                                                      ~ 1:59pm envy
% cd test                                                         ~ 1:59pm envy
% mkdir dir1 dir2                                            ~/test 2:06pm envy
% touch dir1/a dir1/b dir2/a dir2/b                          ~/test 2:07pm envy
% echo */*                                                   ~/test 2:07pm envy
dir1/a dir1/b dir2/a dir2/b
% mkfifo pipe                                                ~/test 2:07pm envy
% ls -l                                                      ~/test 2:07pm envy
total 4
drwxr-xr-x   2 sethml   users       1024 May 21 14:07 dir1/
drwxr-xr-x   2 sethml   users       1024 May 21 14:07 dir2/
prw-r--r--   1 sethml   users          0 May 21 14:07 pipe|
% echo */*                                                   ~/test 2:07pm envy
[ The shell freezes. ]^C
% echo */*                                                 ~/test 2:07pm envy 1
[ The shell freezes.  In another shell:
	% cd
	% mkdir test2
	% touch test2/foo test2/bar test/baz
	% cat test2 > test/pipe ]
dir1/a dir1/b dir2/a dir2/b
%                                                            ~/test 2:09pm envy

Seth



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