bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: syntax error: unexpected end of file


From: Chet Ramey
Subject: Re: syntax error: unexpected end of file
Date: Sun, 10 Jan 2021 13:39:27 -0500
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:78.0) Gecko/20100101 Thunderbird/78.6.0

On 1/10/21 1:28 PM, wael-zwaiter@gmx.com wrote:

bash: /home/hagbard/Genadm/build/gungadin-1.0/sysrc/gungadin.rc: line 455: 
syntax error: unexpected end of file

This happens when I use

quick-grepot-Hirn ()
   { find "$4" -name "*.org" -name "*.texi" -print0 \
        | xargs -0 -n1 -P0 /bin/grep --color="auto" -Hirn "$1" "$2" "$3" }

You need some operator to terminate the xargs command so the brace is
recognized as a reserved word. If you insist on using one line, use `;'.

--
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU    chet@case.edu    http://tiswww.cwru.edu/~chet/



reply via email to

[Prev in Thread] Current Thread [Next in Thread]