features.env
1002 bytes
1# Export syntax
2export EXPORTED_VAR=exported_value
3export EXPORTED_EMPTY=
4
5# Variable expansion (in-file forward references)
6BASE_URL=https://api.example.com
7API_ENDPOINT="${BASE_URL}/v1"
8FULL_ENDPOINT=$BASE_URL/v2/users
9COMBINED="${BASE_URL}_suffix"
10
11# Testing multiline quoting edge cases
12MULTILINE_UNQUOTED=This\ is\ a\ \
13multiline\ value\ that\ should\ be\ treated\ as\ a\ single\ line\ with\ a\ literal\ backslash\ and\ newline
14MULTILINE_DOUBLE_QUOTED="This is a \
15multiline value that should be treated as a single line with an actual newline character"
16MULTILINE_SINGLE_QUOTED='This is a \
17multiline value that should be treated as a single line with a literal backslash and newline'
18MULTILINE_MIXED_QUOTES="This is a \
19multiline value that should be treated as a single line with an actual newline character and a literal backslash \"and 'single quotes' inside"
20
21# Test for regressions
22DATABASE_URL="postgres://user:pass@host/db;sslmode=require"
23VAR_WITH_SEMICOLONS="value ; with ; semicolons"