Skip to Content.
Sympa Menu

sm-discuss - Re: [SM-Discuss] Multi-line persistent variable definitions

sm-discuss AT lists.ibiblio.org

Subject: Public SourceMage Discussion List

List archive

Chronological Thread  
  • From: "Sergey A. Lipnevich" <sergey AT sourcemage.org>
  • To: sm-discuss AT lists.ibiblio.org
  • Subject: Re: [SM-Discuss] Multi-line persistent variable definitions
  • Date: Mon, 30 Jan 2006 10:41:35 -0500

With the backslash, yes you can. Without backslash there's a problem though. A bash-valid .p file that looked like this:

LIRCOPTS=" --with-moduledir=/lib/modules/2.6.15-11-amd64-generic/misc
--with-transmitter
--without-x
--with-syslog
--enable-dyncodes
--with-driver=serial
--with-major=61
--with-port=0x3f8
--with-irq=4"

...looks like this after a cast:

LIRCOPTS=" --with-moduledir=/lib/modules/2.6.15-11-amd64-generic/misc
--with-transmitter
--without-x
--with-syslog
--enable-dyncodes
--with-driver=serial
--with-major=61
--with-port=0x3f8
--with-irq=4"
--with-transmitter="hB-with-transmitter"
--without-x="hB-without-x"
--with-syslog="hB-with-syslog"
--enable-dyncodes="hB-enable-dyncodes"
--with-driver="hB-with-driver"
--with-major="hB-with-major"
--with-port="hB-with-port"
--with-irq="hB-with-irq"

The errors messages go like this:

/var/lib/sorcery/modules/libmisc: line 718: unset: --: invalid option
unset: usage: unset [-f] [-v] [name ...]
/var/lib/sorcery/modules/libmisc: line 718: unset: --: invalid option
unset: usage: unset [-f] [-v] [name ...]
/var/lib/sorcery/modules/libmisc: line 718: unset: --: invalid option
unset: usage: unset [-f] [-v] [name ...]
/var/lib/sorcery/modules/libmisc: line 718: unset: --: invalid option
unset: usage: unset [-f] [-v] [name ...]
/var/lib/sorcery/modules/libmisc: line 718: unset: --: invalid option
unset: usage: unset [-f] [-v] [name ...]
/var/lib/sorcery/modules/libmisc: line 718: unset: --: invalid option
unset: usage: unset [-f] [-v] [name ...]
/var/lib/sorcery/modules/libmisc: line 718: unset: --: invalid option
unset: usage: unset [-f] [-v] [name ...]
/var/lib/sorcery/modules/libmisc: line 718: unset: --: invalid option
unset: usage: unset [-f] [-v] [name ...]
Using gcc version: 4.0.2
Installing in dir: /usr/src/lirc-0.8.0
lirc 0.8.0
/etc/sorcery/local/depends/lirc.p: line 10:
--with-transmitter=hB-with-transmitter: command not found
/etc/sorcery/local/depends/lirc.p: line 11:
--without-x=hB-without-x: command not found
/etc/sorcery/local/depends/lirc.p: line 12:
--with-syslog=hB-with-syslog: command not found
/etc/sorcery/local/depends/lirc.p: line 13:
--enable-dyncodes=hB-enable-dyncodes: command not found
/etc/sorcery/local/depends/lirc.p: line 14:
--with-driver=hB-with-driver: command not found
/etc/sorcery/local/depends/lirc.p: line 15:
--with-major=hB-with-major: command not found
/etc/sorcery/local/depends/lirc.p: line 16:
--with-port=hB-with-port: command not found
/etc/sorcery/local/depends/lirc.p: line 17: --with-irq=hB-with-irq:
command not found


Sergey.

Andrew "ruskie" Levstik wrote:
You mean you can't do it like this:

LIRCOPTS="--x \
--y"

That always worked for me





Archive powered by MHonArc 2.6.24.

Top of Page