GNU bug report logs -
#8654
head
Previous Next
Full log
Message #10 received at 8654-done <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
tag 8654 notabug
close 8654
thanks
On 05/11/2011 02:15 AM, Ivan DI PRIMA wrote:
> Hi I run the following line:
>
> $ set header = `head -5 ~/buffer/t1xp_axi2rgv_fifo.vhd`
>
> and get:
>
> Missing }.
>
> Any ideas?
Thanks for the report. However, this is not a bug in head, but in your
usage of your shell.
What does this output:
head -5 ~/buffer/t1xp_axi2rgv_fifo.vhd
If it is not valid csh shell script (and I'm assuming your using csh,
based on your syntax for using set), then that explains why csh, not
head, is complaining that after the `` substitution has completed, the
resulting text can't be parsed (because it is unquoted, the shell may be
trying to do word splitting on the results, but is getting thrown off by
unbalanced {} in the words to be split). I'm not a csh user, but does
adding "" around the `` help, as in:
set header = "`head -5 ~/buffer/t1xp_axi2rgv_fifo.vhd`"
I'm marking this bug closed, although we can always reopen it if you can
prove that the problem was in head rather than in your use of shell code.
> This communication is confidential and intended solely for the addressee(s).
It is considered poor netiquette to send email to publicly archived
lists with employer disclaimers, since such disclaimers are
unenforceable by nature of the public archival. You may want to
consider sending from a different account when sending bug reports to
open source projects.
--
Eric Blake eblake <at> redhat.com +1-801-349-2682
Libvirt virtualization library http://libvirt.org
[signature.asc (application/pgp-signature, attachment)]
This bug report was last modified 14 years and 15 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.