projects
/
zsh-lovers.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4f2cdcd
)
better example for 'Show me all the .c files for which there doesn't exist a .o'
author
Alexander Wirt
<formorer@grml.org>
Sat, 6 Oct 2007 22:21:36 +0000
(
00:21
+0200)
committer
Alexander Wirt
<formorer@grml.org>
Sat, 6 Oct 2007 22:21:36 +0000
(
00:21
+0200)
zsh-lovers.1.txt
patch
|
blob
|
history
diff --git
a/zsh-lovers.1.txt
b/zsh-lovers.1.txt
index
fea037f
..
7394eee
100644
(file)
--- a/
zsh-lovers.1.txt
+++ b/
zsh-lovers.1.txt
@@
-221,7
+221,7
@@
See ``man 1 zshexpn | less -p'' Qualifiers for details.
fi
# Show me all the .c files for which there doesn't exist a .o file.
- $
c=(*.c) o=(*.o(N)) eval 'ls ${${c:#(${~${(j:|:)${o:r}}}).c}:?done}'
+ $
print *.c(e_'[[ ! -e $REPLY:r.o ]]'_)
# All files in /var/ that are not owned by root
$ ls -ld /var/*(^u:root)