shebang disappears from stdin #92

Closed
opened 2017-12-27 20:18:27 +01:00 by cblp · 1 comment
cblp commented 2017-12-27 20:18:27 +01:00 (Migrated from github.com)

The same file gives the different result when is given as an argument or as stdin.

$ brittany test.hs | diff test.hs -
$ echo $?
0

$ cat test.hs | brittany | diff test.hs -
1c1
< #!/usr/bin/env stack
---
>
$ echo $?
1

Version 0.9.0.0

The same file gives the different result when is given as an argument or as stdin. ``` $ brittany test.hs | diff test.hs - $ echo $? 0 $ cat test.hs | brittany | diff test.hs - 1c1 < #!/usr/bin/env stack --- > $ echo $? 1 ``` Version 0.9.0.0
lspitzner commented 2017-12-27 23:32:35 +01:00 (Migrated from github.com)

This commit fixes it, but I'd like to move some of this code upstream, see the PR above.

This commit fixes it, but I'd like to move some of this code upstream, see the PR above.
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: hexagoxel/brittany#92
There is no content yet.