Re: aliasing "sed" to "sed --posix"

2007-09-15 Thread Bruno Haible
Bruce Korb wrote on 2007-08-06: > Well, I knew ahead of writing the script that unless the shopt > expand_aliases were turned on that they would not work. I had > stumbled into this before. I experimented with aliasing "exit" > because it would have a dramatic effect on the execution flow. :) > S

Re: aliasing "sed" to "sed --posix"

2007-08-06 Thread Bruce Korb
Bruno Haible wrote: > Bruce Korb wrote: >> Aliases are turned off. >> Below is an experiment. Invoke with and without an argument. The results >> look like this: > > Your experiment uses the 'exit' command to test whether aliases are supported. > However, 'exit' is a shell built-in. Whereas 'sed

Re: aliasing "sed" to "sed --posix"

2007-08-06 Thread Eric Blake
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 According to Bruno Haible on 8/6/2007 2:10 AM: > Your experiment uses the 'exit' command to test whether aliases are supported. > However, 'exit' is a shell built-in. Whereas 'sed' is not and will likely > never be a shell built-in. Can you retry your

Re: aliasing "sed" to "sed --posix"

2007-08-06 Thread Bruno Haible
Bruce Korb wrote: > Aliases are turned off. > Below is an experiment. Invoke with and without an argument. The results > look like this: Your experiment uses the 'exit' command to test whether aliases are supported. However, 'exit' is a shell built-in. Whereas 'sed' is not and will likely never

aliasing "sed" to "sed --posix"

2007-08-05 Thread Bruce Korb
gnulib-tool has this entry: # When using GNU sed, turn off as many GNU extensions as possible, # to minimize the risk of accidentally using non-portable features. # However, do this only for gnulib-tool itself, not for the code that # gnulib-tool generates, since we don't want "sed --posix" to lea