module.exports = function(grunt){
    grunt.initConfig({
        pkg: grunt.file.readJSON('package.json'), 
        watch: {
            ctags: {
                files: ['ctags'],
                tasks: ['shell:ctags'],
                options: {
                     nospawn: false,
                },
            }
        },
        shell: {
            ctags: {
                command: [
                        'cp ctags .ctags',
                        'ctags -f - --format=2 --excmd=pattern --fields=nks '+
                              '--sort=no --language-force=css --css-types=cis test.css'
                ].join('&&')
            },
            release: {
                command: [ 
                    'cp ctags $HOME/.ctags',
                    'rm .ctags'
                ].join('&&')
            },
            options:{
                stdout:true
            }
        },   
    });

    grunt.loadNpmTasks('grunt-shell');
    grunt.loadNpmTasks('grunt-contrib-watch');
    grunt.registerTask('default', ['watch']);
    grunt.registerTask('release', ['shell:release']);
};


@@ -420,16 +420,22 @@
 p ctags 
+$HOME/
 .ctags',
@@ -697,31 +697,8 @@
 and:
- %5B %0A                   
  'cp
@@ -723,69 +723,8 @@
 s',%0A
-                    'rm .ctags'%0A                %5D.join('&&')%0A
     

Change shell behavior