On Fri, Apr 12, 2002 at 12:25:19PM +1000, Saurabh Shukla wrote: > > Hi... > > I have a C programme which takes parameters like "\t" or "\b" etc.. . > I have to pass these params from the shell prompt. > > However when it give \t as a parameter, only the t reaches my program. > if i pass \t\x\r , txr is passed to my programme.
The shell also uses \ as an escape character, so you have to escape it from the shell like so: $ myprogram \\t\\x\\r That is, \\ in the shell will be passed as \ to your program. -Andrew. -- SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/ More Info: http://lists.slug.org.au/listinfo/slug
