[fossil-users] fossil add somefile.rs = Error
Hi, I get the following error attempting to add a file with the Ampersand() in the file extension. Fossil wrote: 's' is not recognized as an internal or external command, operable program or batch file. Please advise, Steve ___ fossil-users mailing list fossil-users@lists.fossil-scm.org http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users
Re: [fossil-users] fossil add somefile.rs = Error
On Mon, Mar 28, 2011 at 04:33:04PM -0400, sky5w...@gmail.com wrote: Hi, I get the following error attempting to add a file with the Ampersand() in the file extension. Fossil wrote: 's' is not recognized as an internal or external command, operable program or batch file. Isn't it your shell, telling that? '' stands for launch the left process in background and run that of the right. ___ fossil-users mailing list fossil-users@lists.fossil-scm.org http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users
Re: [fossil-users] fossil add somefile.rs = Error
On Mon, Mar 28, 2011 at 10:33 PM, sky5w...@gmail.com wrote: Hi, I get the following error attempting to add a file with the Ampersand() in the file extension. Fossil wrote: 's' is not recognized as an internal or external command, operable program or batch file That message comes from your shell, not fossil, because your command does not properly escape the '' character, which is special in unix-like shells. You are running two commands: fossil add somefile.r is run in the BACKGROUND because of the character. then you try to run: s The simplest workaround is to quote the filename: fossil add 'somefile.rs' -- - stephan beal http://wanderinghorse.net/home/stephan/ ___ fossil-users mailing list fossil-users@lists.fossil-scm.org http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users
Re: [fossil-users] fossil add somefile.rs = Error
On 03/28/2011 04:33 PM, sky5walk wrote: I get the following error attempting to add a file with the Ampersand() in the file extension. Try with single or double quotes around the file name. -- Joshua Paine LetterBlock: Web applications built with joy http://letterblock.com/ 301-576-1920 ___ fossil-users mailing list fossil-users@lists.fossil-scm.org http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users
Re: [fossil-users] fossil add somefile.rs = Error
DOH! fossil add somefile.rs does the trick. This shows how little I am in shell land. :(( Thanks, Steve On Mon, Mar 28, 2011 at 4:36 PM, Stephan Beal sgb...@googlemail.com wrote: On Mon, Mar 28, 2011 at 10:33 PM, sky5w...@gmail.com wrote: Hi, I get the following error attempting to add a file with the Ampersand() in the file extension. Fossil wrote: 's' is not recognized as an internal or external command, operable program or batch file That message comes from your shell, not fossil, because your command does not properly escape the '' character, which is special in unix-like shells. You are running two commands: fossil add somefile.r is run in the BACKGROUND because of the character. then you try to run: s The simplest workaround is to quote the filename: fossil add 'somefile.rs' -- - stephan beal http://wanderinghorse.net/home/stephan/ ___ fossil-users mailing list fossil-users@lists.fossil-scm.org http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users ___ fossil-users mailing list fossil-users@lists.fossil-scm.org http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users
Re: [fossil-users] fossil add somefile.rs = Error
On Mon, Mar 28, 2011 at 10:36 PM, Stephan Beal sgb...@googlemail.comwrote: The simplest workaround is to quote the filename: fossil add 'somefile.rs' That said, special characters in filenames (spaces, quotation marks, and the like) often cause more grief than simply renaming the files. Lots of shell scripts are not careful to quote filenames properly and may choke in unexpected ways when encountering files with special characters. e.g. if we have a filename 1a b c (with spaces but no quotes), the following will not work: for i in a*; do mv $i $i.bak; done that will try to move 5 files (if i'm not mis-counting) to a single file names c.bak. stephan@tiny:~$ touch '1a b c' stephan@tiny:~$ for i in 1a*; do echo mv $i $i.bak; done mv 1a b c 1a b c.bak As a general rule, to avoid compatibility problems, never use spaces or any characters which might be prohibited or problematic on some systems. e.g. having the character ':' in a filename will work on Unix but not Windows. -- - stephan beal http://wanderinghorse.net/home/stephan/ ___ fossil-users mailing list fossil-users@lists.fossil-scm.org http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users
Re: [fossil-users] fossil add somefile.rs = Error
put the filename in quotes. -Original Message- From: Lluís Batlle i Rossell virik...@gmail.com Sent: Monday, March 28, 2011 22:36:10 Subject: Re: [fossil-users] fossil add somefile.rs = Error On Mon, Mar 28, 2011 at 04:33:04PM -0400, sky5w...@gmail.com wrote: Hi, I get the following error attempting to add a file with the Ampersand() in the file extension. Fossil wrote: 's' is not recognized as an internal or external command, operable program or batch file. Isn't it your shell, telling that? '' stands for launch the left process in background and run that of the right. ___ fossil-users mailing list fossil-users@lists.fossil-scm.org http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users ___ fossil-users mailing list fossil-users@lists.fossil-scm.org http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users