Skip to content

Commit

Permalink
fix os.getenv_opt used in string interpolation, discovered through vl…
Browse files Browse the repository at this point in the history
…ang/v PR#17566
  • Loading branch information
spytheman committed Apr 23, 2024
1 parent 695690c commit 5503d3e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/nohup/nohup.v
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import os
import common

const tool_name = 'nohup'
const out_files = ['nohup.out', '${os.getenv_opt('HOME')!}/nohup.out']
const out_files = ['nohup.out', '${os.getenv_opt('HOME')?}/nohup.out']

fn open_nohup_out(mut f os.File, print_message bool) ! {
for file in out_files {
Expand Down

0 comments on commit 5503d3e

Please sign in to comment.