home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   alt.msdos.batch      Fun with MS-DOS batch files      42,547 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 42,210 of 42,547   
   Ivan Shmakov to All   
   Re: The angle bracket in an echo command   
   15 Jun 23 21:20:42   
   
   XPost: comp.unix.shell   
   From: ivan@siamics.netNOSPAM.invalid   
      
   >>>>> On 2023-06-14, Kenny McCormack wrote:   
   >>>>> MU == Muhammad Usman  wrote:   
      
    MU> I got the solution just after 26 years. Use single quotes such as   
    MU> echo -e ''   
    MU> will solve the issue.   
      
   [...]   
      
    > Anyway, believe it or not, it is not the angle brackets that are   
    > giving you grief (see below - *); rather, it is the exclamation point   
    > (!).  You need to read up on the topic of "history substitution" in   
    > "man bash".   
      
    > (*) Basically, either single or double quotes will protect angle   
    > brackets, but you need single quotes to protect "!".   
      
   	It's also possible to disable history substitution altogether   
   	with 'set +H'.   
      
   	I believe this behavior is rather confusing to new users, and   
   	given that C-r (reverse-search-history) and cursor keys already   
   	offer a comparable feature, and one likely to fit better with   
   	user's prior experience at that, my suggestion would be to   
   	have it disabled by default.   
      
   --   
   FSF associate member #7257  http://am-1.org/~ivan/   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca