mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-07-12 05:01:27 +02:00
Baptiste Daroussin: 27268:
remove Perl dependency from pick-web-browser
This commit is contained in:
parent
49b4a71009
commit
dc6ef8c9ae
2 changed files with 8 additions and 10 deletions
|
@ -1,5 +1,8 @@
|
|||
2009-09-11 Peter Stephenson <pws@csr.com>
|
||||
|
||||
* Baptiste Daroussin: 27268: Functions/MIME/pick-web-browser:
|
||||
remove Perl dependency.
|
||||
|
||||
* Baptiste Daroussin: 27267 plus 27269 plus doc:
|
||||
Functions/Zftp/zfrtime, Doc/Zsh/zftpsys.yo: remove perl
|
||||
dependency.
|
||||
|
@ -12152,5 +12155,5 @@
|
|||
|
||||
*****************************************************
|
||||
* This is used by the shell to define $ZSH_PATCHLEVEL
|
||||
* $Revision: 1.4774 $
|
||||
* $Revision: 1.4775 $
|
||||
*****************************************************
|
||||
|
|
|
@ -74,16 +74,11 @@ for bstyle in $bstyles; do
|
|||
|
||||
# Get the name of all windows running; use the internal name, not
|
||||
# the friendly name, which is less useful.
|
||||
#
|
||||
# The nasty but portable version.
|
||||
# The nice but non-portable version uses Perl, even though perl
|
||||
# is more portable.
|
||||
# windows=(${(f)"$(xwininfo -root -all |
|
||||
# sed -ne 's/.*".*": ("\(.*\)" ".*").*/\1/p' |sort | uniq)"})
|
||||
|
||||
windows=(${(f)"$(xwininfo -root -all |
|
||||
perl -ne '/.*"(.*)": \("(.*)" "(.*)"\).*/ and $w{$2} = 1;
|
||||
END { print join("\n", keys %w), "\n" }')"})
|
||||
windows=(${(ou)${(M)${(f)"$(xwininfo -root -all)"}:#*\"*\"\:[[:space:]]\(\"*}/(#b)*\"*\"\:[[:space:]]\(\"(*)\"[[:space:]]\"*\"\)*/$match[1]})
|
||||
#windows=(${(f)"$(xwininfo -root -all |
|
||||
# perl -ne '/.*"(.*)": \("(.*)" "(.*)"\).*/ and $w{$2} = 1;
|
||||
# END { print join("\n", keys %w), "\n" }')"})
|
||||
|
||||
# Is any browser we've heard of running?
|
||||
for browser in $xbrowsers; do
|
||||
|
|
Loading…
Reference in a new issue