mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-29 06:13:20 +00:00
69b464bc37
It's now good enough to do so. We don't allow grid-alignment: ```fish complete -c foo -s b -l barnanana -a '(something)' complete -c foo -s z -a '(something)' ``` becomes ```fish complete -c foo -s b -l barnanana -a '(something)' complete -c foo -s z -a '(something)' ``` It's just more trouble than it is worth. The one part I'd change: We align and/or'd parts of an if-condition with the in-block code: ```fish if true and false dosomething end ``` becomes ```fish if true and false dosomething end ``` but it's not used terribly much and if we ever fix it we can just reindent.
24 lines
339 B
Fish
24 lines
339 B
Fish
# RUN: %fish %s
|
|
echo 'a | b' | read -lt a b c
|
|
|
|
set -l
|
|
# CHECK: a a
|
|
# CHECK: b '|'
|
|
# CHECK: c b
|
|
|
|
echo 'a"foo bar"b' | read -lt a b c
|
|
|
|
set -l
|
|
# CHECK: a 'afoo barb'
|
|
# CHECK: b
|
|
# CHECK: c
|
|
|
|
echo "a b b" | read a b
|
|
string escape $a $b
|
|
# CHECK: a
|
|
# CHECK: 'b b'
|
|
|
|
echo 'a<><>b<>b' | read -d '<>' a b
|
|
printf %s\n $a $b
|
|
# CHECK: a
|
|
# CHECK: <>b<>b
|