zsh-users
 help / color / mirror / code / Atom feed
* Bash to Zsh Funny
@ 2005-03-09 11:26 zzapper
  2005-03-09 11:41 ` J
  0 siblings, 1 reply; 6+ messages in thread
From: zzapper @ 2005-03-09 11:26 UTC (permalink / raw)
  To: zsh-users

Hi,

The following runs as bash but not zsh, because the line which evaulates to:-

gvim.exe note123.txt note345.txt &

In bash fine gvim edits the two files

in zsh

gvim tries to edit the filename "note123.txt note345.txt" as tho it were one long filename


#!/bin/zsh
# gg
# description : vi all files containing $1 in name
set +x
cd c:/intranet/note/
if [ $# -gt 0 ] 
   then 
files=$(grep -il "note [0-9][0-9][0-9].*$1" $(find . -name 'note???.txt'))
if [ "$files" != "" ]
then
files=${files//[[:space:]]/ }
echo $files
gvim.exe $files &
else
echo sorry $1 not found
fi
fi



^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2005-03-10 13:47 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-03-09 11:26 Bash to Zsh Funny zzapper
2005-03-09 11:41 ` J
2005-03-09 12:01   ` David Rayner
2005-03-10 13:24     ` zzapper
     [not found]       ` <david@tvis.co.uk>
2005-03-10 13:46         ` Peter Stephenson
2005-03-09 16:14   ` Dan Nelson

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).