DVM - D Version Manager

Daniel Gibson metalcaedes at gmail.com
Wed Jan 26 10:12:06 PST 2011


Am 26.01.2011 09:36, schrieb Jacob Carlborg:
> On 2011-01-25 23:59, Jesse Phillips wrote:
>> Jacob Carlborg Wrote:
>>
>>> Yeah, I guess you're right, didn't think there were a lot people who
>>> used other shells. Since I almost know nothing about shell scripting and
>>> even less about non-bourne shells, will it be possible to port to other
>>> shells? How much do they differ?
>>>
>>> -- 
>>> /Jacob Carlborg
>>
>> To add to Lutger's message. I believe it is sh that is required by all Posix
>> systems, or at least an equivalent. Similarly I think vi is also a requirement.
>>
>> In all likelyhood you probably used a Bash specific feature, but usually
>> everyone has bash even if they use zsh... Though Ubuntu/Debian has started
>> pointing /bin/sh to dash which is complaint with posix...
> 
> Ok. I'll see I can use only sh.
> 

Debian (and probably ubuntu as well) has a package called "devscripts" which
contains a handy tool called "checkbashisms". This tool tells you if your script
uses bash-specific stuff and often even suggests a more portable alternative.
I haven't checked DVM yet, but if you want to have stuff done one login, put it
into ~/.profile instead of ~/.bashrc - this should be executed by all POSIX
compliant shells I think.

Cheers,
- Daniel


More information about the Digitalmars-d-announce mailing list