File: comments.sh

package info (click to toggle)
python-bashate 2.1.0-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 380 kB
  • sloc: python: 743; sh: 202; makefile: 22
file content (26 lines) | stat: -rw-r--r-- 285 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/bin/bash

# make sure we're ignoring comments correctly

## multiple

# if [ foo ];
# then
#  echo "blah"
# fi

foo=1 # `test`

if [ foo ]; then # hello
    echo "hi"
fi

if [ foo ]; then ## hello ##
    echo "hi"
fi

# ``RST style comment``

 # ``indented comment``

#	tab comment