Re: printf bug/limitation

2006-09-27 Thread Pádraig Brady
Singh, Sundeep wrote: > Hi, > I have a printf statement in my script as follows: > printf "-- %s \n" $name Pass -- first to printf to tell it you're not passing it any (more) command line options, like: printf -- "-- %s \n" $name Pádraig. ___ Bug-co

printf bug/limitation

2006-09-27 Thread Singh, Sundeep
Hi, I have a printf statement in my script as follows: printf "-- %s \n" $name On executing the script I get an error: "printf: --: invalid option" I am using GNU bash, version 2.05b.0(1)-release (i386-redhat-linux-gnu) GNU coreutils 4.5.3 Regards, Sundeep B. Singh. ___