Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/sh
- # the following is completely valid shell syntax
- ## bug: quoted subshells ##
- # broken up, this line is fine
- # (well, not really, but at least its errors are self-contained)
- temp="$(
- mktemp -t "$(
- basename -- "$0"
- ).XXXXXX"
- )"
- # but on a single line, it fucks up pastebin's syntax highlighting
- temp="$(mktemp -t "$(basename -- "$0").XXXXXX")"
- # see what I mean?
- # well?
- # it only thinks it's outside a quoted string when I use a double quote --> "
- # now it's fine
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement