Inline comments for bash?

Posted by Lajos Nagy on Stack Overflow See other posts from Stack Overflow or by Lajos Nagy
Published on 2010-03-26T15:22:13Z Indexed on 2010/03/26 15:23 UTC
Read the original article Hit count: 402

Filed under:

I'd like to be able to comment out a single flag in a one-line command. Bash only seems to have `from # till end-of-line' comments. I'm looking at tricks like:

ls -l $([ ] && -F is turned off) -a /etc

It's ugly, but better than nothing. Anybody has any better suggestions?

© Stack Overflow or respective owner

Related posts about bash