[Bug 1832922] Re: cannot use growisofs to write iso image

Thomas Schmitt scdbackup at gmx.net
Sat Jun 15 21:53:26 UTC 2019


Hi,

i made experiments with shell variable IFS which can declare '=' to
be white space.
When i do

  echo -n x"$IFS"x | od -c

i get

  0000000   x      \t  \n   x
  0000005

(The 'x' are for better recognizing the gaps of blank characters.)

Contrary to my expectation, the shell loop "for" does not react on IFS:

  IFS="$IFS"=
  echo -n x"$IFS"x | od -c
  for i in /dev/sr0=ubuntu-16.04.6-desktop-amd64.iso ; do echo "$i" ; done )

yields

  0000000   x      \t  \n   =   x
  0000006
  /dev/sr0=ubuntu-16.04.6-desktop-amd64.iso

But with functions, built-in commands, and programs IFS would be a possible
explanation for growisofs' behavior:

  show_args() { for i in $@ ; do echo $i ; done; }
  show_args /dev/sr0=ubuntu-16.04.6-desktop-amd64.iso

yields

  /dev/sr0
  ubuntu-16.04.6-desktop-amd64.iso

Without seeing the '=', growisofs will employ genisoimage.

-----------------------------------------------------------------------

So what do you get from

  echo -n x"$IFS"x | od -c


Have a nice day :)

Thomas

-- 
You received this bug notification because you are a member of Ubuntu
Burning Team, which is subscribed to dvd+rw-tools in Ubuntu.
https://bugs.launchpad.net/bugs/1832922

Title:
  cannot use growisofs to write iso image

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/dvd+rw-tools/+bug/1832922/+subscriptions



More information about the Ubuntu-burning mailing list