in reply to Re: Any tips on passing bash variables as arguments to a perl script (that contain spaces and/or non-ascii characters)
in thread Any tips on passing bash variables as arguments to a perl script (that contain spaces and/or non-ascii characters)

since the question is about about Linux and bash, you can probably skip the page about quoting on non-Unix systems; the bash manual is what you want. Most of the time, putting the arguments in double quotes does what you want, e.g.,
scriptname ... "${OPC_MSG_TXT}"
will ensure that whatever $OPC_MST_TXT expands to ends up as a single positional parameter
  • Comment on Re^2: Any tips on passing bash variables as arguments to a perl script (that contain spaces and/or non-ascii characters)
  • Download Code