pythonizer icon indicating copy to clipboard operation
pythonizer copied to clipboard

shift without an argument and not in a sub should shift @ARGV

Open snoopyjc opened this issue 3 years ago • 2 comments

shift without an argument and not in a sub should shift @ARGV. If shifts perl_arg_array, but that's not initialized.

snoopyjc avatar Nov 10 '21 04:11 snoopyjc

Fix is to initialize perl_arg_array to be sys.argv[1:].

snoopyjc avatar Nov 10 '21 04:11 snoopyjc

Fixed in https://github.com/snoopyjc/pythonizer - used a different fix than specified above - shift in main now properly shifts sys.argv[1:]

snoopyjc avatar Feb 07 '22 16:02 snoopyjc