10-22-2014
Quote:
Originally Posted by
MadeInGermany
is Bourne shell, works in any shell.
it is Bourne shell, yes, and will work in any shell compatible with the Bourne shell, yes, but will not work in shells not compatible with the Bourne shell.
Generally, backwards compatibility with the Bourne shell is of course a valuable asset nowadays. But wouldn't it be better to go the whole distance? The Bourne-shell was built as an extension to the Thompson-shell (osh) in which the backticks won't work either. To avoid backwards compatibility problems with systems lacking a Bourne-shell and having only a Thompson-shell (like, for instance, most pre-SysV-systems as well as perhaps all the Multics systems) maybe a completely different approach would be best?
Quote:
Originally Posted by
MadeInGermany
While
only works in ksh93 and bash and zsh
Actually it works in
any ksh, not only ksh93. In fact this is exactly what i said:
Quote:
Does the same in ksh and bash
I still have to see a "POSIX shell" which is not either a "POSIX-compatible ksh" or a "POSIX-compatible bash", therefore i think that the POSIX-issue is moot in this case.
I hope this helps.
bakunin
Last edited by bakunin; 10-22-2014 at 09:10 PM..
9 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hello:
Executing following script i'm getting error:
1=1+1: 0403-058 Assignment requires an lvalue.
It's not assuming the counter but i don't know why.
Some hint?
Thank you very much in advance.
#!/bin/ksh
<path>/tiempos.txt
num_exe=1
TIEMPOS=<path>/tiempos.txt
while ]
do (2 Replies)
Discussion started by: Felix2511
2 Replies
2. Shell Programming and Scripting
I have generated a script that will email a list of people if a certain PID is not running, using "mailx". I have the script running every 5 minutes as a cron job.
I want the script to stop sending an email, if the email has been sent 5 times (meaning PID is dead). I want this so that my... (3 Replies)
Discussion started by: Sunguy222
3 Replies
3. Shell Programming and Scripting
Hi,
I'm new to unix and have a problem? I'm writing a basic script in ksh and it is a basic quiz with 5 questions. I need to be able to accumulate the correct answers at the end and echo out the total correct answers, I cannot work it out? Please see script so far. If anyone can help that will... (2 Replies)
Discussion started by: Pablo_beezo
2 Replies
4. Shell Programming and Scripting
I have looked high and low, tryed lots of diffrent things but cant get a simple counter to work right.
what i need is to increase a count ever time it finishes the test, pass or fail. example TEST PASS 1, NEXT TEST PASS 2,
I curently have
set foo o
while {$foo <=5} {
incr foo
puts... (1 Reply)
Discussion started by: melvin
1 Replies
5. Shell Programming and Scripting
I am executing the following script using 'awk -f process.awk out' where 'out' is the input file which consists of 5000 sequences. Each time it takes one sequence, run the below program by creating a directory, run the mfold command within that directory, running another shell script 'final5' and... (2 Replies)
Discussion started by: kswapnadevi
2 Replies
6. Shell Programming and Scripting
Hi,
I am writing a script which processes large number of files in a directory. I wanto display a counter which increment after processing each file. I am processing each file in a for loop. If I echo a variable with its value increasing with each file, I will get around 5000 lines as output.... (10 Replies)
Discussion started by: jaiseaugustine
10 Replies
7. Shell Programming and Scripting
Hello all!
This is my first post and I'm very new to programming. I would like help creating a simple perl or bash script that I will be using in my work as a junior bioinformatician.
Essentially, I would like to take a tab-delimted or .csv text with 3 columns and write them to a "3D" matrix:
... (16 Replies)
Discussion started by: torchij
16 Replies
8. Shell Programming and Scripting
I want to run my shell script to the limit number.Suppose I know in advance that MAX=5 then I want that my script run 5 times only.Something like below$ vi testingMAX=5COMMAND="ssh -l stpuser VHLDVWSAD001 /projects/st/utils/deploy/deployall.sh >/dev/null 2>&1 &" ; sleep 20;count=0while... (2 Replies)
Discussion started by: anuragpgtgerman
2 Replies
9. UNIX for Dummies Questions & Answers
Hello,
I am having trouble calculating some numbers and I was hoping someone could help me solve this.
I have one file with 1 column and what I'm trying to do is add up the lines until a certain value is reach, then jump to where it last finished counting and continue.
so for ex: if I... (27 Replies)
Discussion started by: verse123
27 Replies
LEARN ABOUT DEBIAN
catalyst::helper::html::formfu
Catalyst::Helper::HTML::FormFu(3pm) User Contributed Perl Documentation Catalyst::Helper::HTML::FormFu(3pm)
NAME
Catalyst::Helper::HTML::FormFu - Helper to deploy HTML::FormFu template files.
SYNOPSIS
script/myapp_create.pl HTML::FormFu
DESCRIPTION
As of version 0.02000, HTML::FormFu doesn't use the TT template files by default - it uses in internal rendering engine.
If you don't want to customise the generated markup, you don't need to use Catalyst::Helper::HTML::FormFu at all.
If you want to customise the generated markup, you'll need a local copy of the template files. To create the files in the default
"root/formfu" directory, run:
script/myapp_create.pl HTML::FormFu
To create the files in a different subdirectory of "root", pass the path as an argument. The following example would create the template
files into the directory "root/forms".
script/myapp_create.pl HTML::FormFu forms
You'll also need to tell HTML::FormFu to use the TT renderer, this can be achieved with Catalyst::Controller::HTML::FormFu, with the
following Catalyst application YAML config:
---
'Controller::HTML::FormFu':
constructor:
render_method: tt
SUPPORT
IRC:
Join #catalyst on irc.perl.org.
Mailing Lists:
http://lists.rawmode.org/cgi-bin/mailman/listinfo/html-widget
SEE ALSO
HTML::FormFu, Catalyst::Helper
AUTHOR
Carl Franks, "cfranks@cpan.org"
LICENSE
This library is free software . You can redistribute it and/or modify it under the same terms as perl itself.
perl v5.14.2 2011-04-04 Catalyst::Helper::HTML::FormFu(3pm)