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

Re: using brackets in scripts



Pol <xtekhne@xxxxxxxxx>:
> While the command 
> ls -l save/*(.)  
> 
> returns a list of files, as expected, entering the same command in a shell
> script does not work, returning:
>    
>      Syntax error: "(" unexpected
> 
> Any ideas?

You're using zsh's glob-qualifiers in a script interpreted by another
shell. These qualifiers are zsh specific.

Regards, Frank

-- 
In protocol design, perfection has been reached not when there is
nothing left to add, but when there is nothing left to take away.
                                                  -- RFC 1925



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