ARG_MAX
| Shells
| whatshell
| portability
| permissions
| UUOC
| ancient
| -
| ../Various
| HOME
$() vs )
| IFS
| using siginfo
| nanosleep
| line charset
| locale
| Example A.1: |
echo $(
case x in x) echo x;; esac
)
|
| Example A.2: |
echo $(
case x in x) echo x;; esac # comment
)
|
| Example A.3: |
echo $(
case x in (x) echo x;; esac
)
|
| Example A.4: |
echo $(
case x in (x) echo x;; esac # comment
)
|
| Example A.5: |
echo $(
case x in (x) echo x
esac
)
|
| Example B: |
echo $(
echo 'quoted )'
)
|
| Example C |
echo $(
echo comment # with )
)
|
| Example D.1 |
echo $(
cat <<\eof
here-doc with )
eof
)
|
| Example D.2 |
echo $(
cat <<\eof
here-doc with )
eof)
|
| Example D.3 |
echo $(
cat <<\eof
here-doc with \()
eof
)
|
|
Example E
("academic") |
echo $(
cat <<\)
here-doc terminated with a parenthesis
)
)
|
| Example F |
echo $(
cat <<\eof
' # or a single back- or doublequote
eof
)
|
| Example G |
echo $(
echo # \
)
|
| Example H |
echo $( )
|