Ian Athanasakis commented on PIG-519:

Generally, "#" is a comment-introducing character in most scripting languages.

If I may, saying that "#!" is a comment only on the first line or something of 
the sort, is more of an awkward syntax than saying that "#" is sometimes a 
comment and sometimes a map dereferencer.

> allow for '#' to signify a comment in a PIG script
> --------------------------------------------------
>                 Key: PIG-519
>                 URL: https://issues.apache.org/jira/browse/PIG-519
>             Project: Pig
>          Issue Type: Wish
>          Components: grunt
>         Environment: linux/unix
>            Reporter: Ian Holsman
>            Priority: Trivial
>         Attachments: comment.patch, pig.pig
> in unix type operating systems, it is common to just run scripts directly 
> from the shell.
> In order to do this scripts need to have the command to run them on the first 
> line similar to
> #!/usr/bin/env pig -
> this patch allows you to just run scripts without specifying pig -f XXX

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

Reply via email to